mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Process gift updates in list.
This commit is contained in:
@@ -1645,6 +1645,14 @@ rpl::producer<not_null<HistoryItem*>> Session::newItemAdded() const {
|
||||
return _newItemAdded.events();
|
||||
}
|
||||
|
||||
void Session::notifyGiftUpdate(GiftUpdate &&update) {
|
||||
_giftUpdates.fire(std::move(update));
|
||||
}
|
||||
|
||||
rpl::producer<GiftUpdate> Session::giftUpdates() const {
|
||||
return _giftUpdates.events();
|
||||
}
|
||||
|
||||
HistoryItem *Session::changeMessageId(PeerId peerId, MsgId wasId, MsgId nowId) {
|
||||
const auto list = messagesListForInsert(peerId);
|
||||
const auto i = list->find(wasId);
|
||||
|
Reference in New Issue
Block a user