mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix sending first message in chat.
This commit is contained in:
@@ -2607,17 +2607,16 @@ void History::dialogEntryApplied() {
|
||||
return;
|
||||
}
|
||||
if (!chatListMessage()) {
|
||||
clear(ClearType::Unload);
|
||||
addNewerSlice(QVector<MTPMessage>());
|
||||
addOlderSlice(QVector<MTPMessage>());
|
||||
if (const auto channel = peer->asChannel()) {
|
||||
const auto inviter = channel->inviter;
|
||||
if (inviter > 0 && channel->amIn()) {
|
||||
if (const auto from = owner().userLoaded(inviter)) {
|
||||
clear(ClearType::Unload);
|
||||
addNewerSlice(QVector<MTPMessage>());
|
||||
insertJoinedMessage();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
clear(ClearType::DeleteChat);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user