mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
FullMsgId rely on PeerId instead of ChannelId.
This commit is contained in:
@@ -300,9 +300,7 @@ void Folder::applyDialog(const MTPDdialogFolder &data) {
|
||||
_chatsList.updateCloudUnread(data);
|
||||
if (const auto peerId = peerFromMTP(data.vpeer())) {
|
||||
const auto history = owner().history(peerId);
|
||||
const auto fullId = FullMsgId(
|
||||
peerToChannel(peerId),
|
||||
data.vtop_message().v);
|
||||
const auto fullId = FullMsgId(peerId, data.vtop_message().v);
|
||||
history->setFolder(this, owner().message(fullId));
|
||||
} else {
|
||||
_chatsList.clear();
|
||||
|
Reference in New Issue
Block a user