Version 5.10.4: Fix build with GCC.

This commit is contained in:
John Preston
2025-01-22 23:56:52 +04:00
parent aea90f4b65
commit 88e80b4fae
5 changed files with 9 additions and 6 deletions

View File

@@ -772,6 +772,7 @@ void Manager::Private::showNotification(
NotificationInfo &&info,
Ui::PeerUserpicView &userpicView) {
const auto peer = info.peer;
const auto options = info.options;
const auto key = ContextId{
.sessionId = peer->session().uniqueId(),
.peerId = peer->id,
@@ -797,7 +798,7 @@ void Manager::Private::showNotification(
auto i = _notifications.find(key);
if (i != end(_notifications)) {
auto j = i->second.find(msgId);
auto j = i->second.find(info.itemId);
if (j != end(i->second)) {
auto oldNotification = std::move(j->second);
i->second.erase(j);
@@ -811,7 +812,7 @@ void Manager::Private::showNotification(
base::flat_map<MsgId, Notification>()).first;
}
const auto j = i->second.emplace(
msgId,
info.itemId,
std::move(notification)).first;
j->second->show();
}