mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Don't parse empty messages in channels.
This commit is contained in:
parent
cdedf283ac
commit
c810005f86
1 changed files with 1 additions and 1 deletions
|
@ -2758,7 +2758,7 @@ HistoryItem *Session::addNewMessage(
|
|||
MessageFlags localFlags,
|
||||
NewMessageType type) {
|
||||
const auto peerId = PeerFromMessage(data);
|
||||
if (!peerId) {
|
||||
if (!peerId || data.type() == mtpc_messageEmpty) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue