2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 16:15:13 +00:00

Track bot commands separately in different chats.

This commit is contained in:
John Preston
2021-07-01 14:05:15 +03:00
parent 93d99d6173
commit b930bc0e6d
14 changed files with 149 additions and 94 deletions

View File

@@ -1088,11 +1088,11 @@ rpl::producer<not_null<UserData*>> Session::userIsBotChanges() const {
return _userIsBotChanges.events();
}
void Session::botCommandsChanged(not_null<UserData*> user) {
_botCommandsChanges.fire_copy(user);
void Session::botCommandsChanged(not_null<PeerData*> peer) {
_botCommandsChanges.fire_copy(peer);
}
rpl::producer<not_null<UserData*>> Session::botCommandsChanges() const {
rpl::producer<not_null<PeerData*>> Session::botCommandsChanges() const {
return _botCommandsChanges.events();
}