mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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,
|
MessageFlags localFlags,
|
||||||
NewMessageType type) {
|
NewMessageType type) {
|
||||||
const auto peerId = PeerFromMessage(data);
|
const auto peerId = PeerFromMessage(data);
|
||||||
if (!peerId) {
|
if (!peerId || data.type() == mtpc_messageEmpty) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue