mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Use Main::Session::uniqueId in notifications.
This commit is contained in:
@@ -950,10 +950,10 @@ Notifications::Manager::NotificationId Notification::myId() const {
|
||||
if (!_history) {
|
||||
return {};
|
||||
}
|
||||
const auto selfId = _history->session().userId();
|
||||
const auto peerId = _history->peer->id;
|
||||
const auto msgId = _item ? _item->id : ShowAtUnreadMsgId;
|
||||
return { .peerId = peerId, .msgId = msgId, .selfId = selfId };
|
||||
return { .full = {
|
||||
.sessionId = _history->session().uniqueId(),
|
||||
.peerId = _history->peer->id
|
||||
}, .msgId = _item ? _item->id : ShowAtUnreadMsgId };
|
||||
}
|
||||
|
||||
void Notification::changeHeight(int newHeight) {
|
||||
|
Reference in New Issue
Block a user