mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Track bot commands separately in different chats.
This commit is contained in:
@@ -489,9 +489,9 @@ HistoryWidget::HistoryWidget(
|
||||
}, lifetime());
|
||||
|
||||
session().data().botCommandsChanges(
|
||||
) | rpl::filter([=](not_null<UserData*> user) {
|
||||
return _peer && (_peer == user || !_peer->isUser());
|
||||
}) | rpl::start_with_next([=](not_null<UserData*> user) {
|
||||
) | rpl::filter([=](not_null<PeerData*> peer) {
|
||||
return _peer && (_peer == peer);
|
||||
}) | rpl::start_with_next([=] {
|
||||
if (_fieldAutocomplete->clearFilteredBotCommands()) {
|
||||
checkFieldAutocomplete();
|
||||
}
|
||||
|
Reference in New Issue
Block a user