attachments null

This commit is contained in:
Guilherme Gazzo 2017-11-20 22:58:15 -02:00
parent da4ecdc3b2
commit 318cf7b970
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ const RocketChat = {
const message = ddbMessage.fields.args[0];
message.temp = false;
message._server = server;
message.attachments = message.attachments || [];
realm.create('messages', message, true);
});
}
@ -247,6 +248,7 @@ const RocketChat = {
data.messages.forEach((message) => {
message.temp = false;
message._server = { id: reduxStore.getState().server.server };
message.attachments = message.attachments || [];
// write('messages', message);
realm.create('messages', message, true);
});