attachments null
This commit is contained in:
parent
da4ecdc3b2
commit
318cf7b970
|
@ -68,6 +68,7 @@ const RocketChat = {
|
||||||
const message = ddbMessage.fields.args[0];
|
const message = ddbMessage.fields.args[0];
|
||||||
message.temp = false;
|
message.temp = false;
|
||||||
message._server = server;
|
message._server = server;
|
||||||
|
message.attachments = message.attachments || [];
|
||||||
realm.create('messages', message, true);
|
realm.create('messages', message, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -247,6 +248,7 @@ const RocketChat = {
|
||||||
data.messages.forEach((message) => {
|
data.messages.forEach((message) => {
|
||||||
message.temp = false;
|
message.temp = false;
|
||||||
message._server = { id: reduxStore.getState().server.server };
|
message._server = { id: reduxStore.getState().server.server };
|
||||||
|
message.attachments = message.attachments || [];
|
||||||
// write('messages', message);
|
// write('messages', message);
|
||||||
realm.create('messages', message, true);
|
realm.create('messages', message, true);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue