2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Improve published scheduled notifications.

This commit is contained in:
John Preston
2019-08-28 21:20:49 +03:00
parent 87addd41b1
commit 07f45b7eab
14 changed files with 239 additions and 102 deletions

View File

@@ -1202,7 +1202,9 @@ void Session::changeMessageId(ChannelId channel, MsgId wasId, MsgId nowId) {
Assert(i != list->end());
auto owned = std::move(i->second);
list->erase(i);
list->emplace(nowId, std::move(owned));
const auto [j, ok] = list->emplace(nowId, std::move(owned));
Ensures(ok);
}
void Session::notifyItemIdChange(IdChange event) {