mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Almost all JSON properties to JavaScript camelCase
This commit is contained in:
parent
7a53cae32f
commit
f080a302b1
50 changed files with 501 additions and 562 deletions
|
|
@ -266,10 +266,10 @@ populateMessageBody = (oMessage, popup) => {
|
|||
if (
|
||||
json &&
|
||||
MessageModel.validJson(json) &&
|
||||
oMessage.folder === json.Folder
|
||||
oMessage.folder === json.folder
|
||||
) {
|
||||
const threads = oMessage.threads(),
|
||||
isNew = !popup && oMessage.uid != json.Uid && threads.includes(json.Uid),
|
||||
isNew = !popup && oMessage.uid != json.uid && threads.includes(json.uid),
|
||||
messagesDom = MessageUserStore.bodiesDom();
|
||||
if (isNew) {
|
||||
oMessage = MessageModel.reviveFromJson(json);
|
||||
|
|
@ -283,11 +283,11 @@ populateMessageBody = (oMessage, popup) => {
|
|||
MessageUserStore.message(oMessage);
|
||||
}
|
||||
|
||||
if (oMessage && oMessage.uid == json.Uid) {
|
||||
if (oMessage && oMessage.uid == json.uid) {
|
||||
popup || MessageUserStore.error('');
|
||||
/*
|
||||
if (bCached) {
|
||||
delete json.Flags;
|
||||
delete json.flags;
|
||||
}
|
||||
*/
|
||||
isNew || oMessage.revivePropertiesFromJson(json);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue