[FIX] URL preview (#1360)

This commit is contained in:
Diego Mello 2019-11-01 14:34:35 -03:00 committed by GitHub
parent 44415c881f
commit ffeac38034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ const createOrUpdateSubscription = async(subscription, room) => {
);
}
if (sub.lastMessage) {
const lastMessage = buildMessage(sub.lastMessage);
if (tmp.lastMessage) {
const lastMessage = buildMessage(tmp.lastMessage);
const messagesCollection = db.collections.get('messages');
let messageRecord;
try {