Remove warning if no draft_message is present

This commit is contained in:
John Gibbon 2021-01-01 21:06:38 +01:00
parent 2c078307dc
commit 04f6c14e86

View file

@ -459,7 +459,7 @@ Page {
Debug.log("[ChatPage] Received pinned message");
pinnedMessageItem.pinnedMessage = message;
}
if (messageId === chatInformation.draft_message.reply_to_message_id) {
if (chatInformation.draft_message && messageId === chatInformation.draft_message.reply_to_message_id) {
newMessageInReplyToRow.inReplyToMessage = message;
}
}