diff --git a/packages/client/src/methods/updates.ts b/packages/client/src/methods/updates.ts index ab085bad..1c70130a 100644 --- a/packages/client/src/methods/updates.ts +++ b/packages/client/src/methods/updates.ts @@ -554,6 +554,7 @@ async function _loadChannelDifference( diff.messages.forEach((message) => { if (noDispatch && noDispatch.msg[channelId]?.[message.id]) return + if (message._ === 'messageEmpty') return this.dispatchUpdate(message, users, chats) }) @@ -562,6 +563,7 @@ async function _loadChannelDifference( diff.newMessages.forEach((message) => { if (noDispatch && noDispatch.msg[channelId]?.[message.id]) return + if (message._ === 'messageEmpty') return this.dispatchUpdate(message, users, chats) }) @@ -577,6 +579,9 @@ async function _loadChannelDifference( if (pts && noDispatch.pts[channelId]?.[pts]) return } + if (upd._ === 'updateNewChannelMessage' && upd.message._ === 'messageEmpty') + return + this.dispatchUpdate(upd, users, chats) })