mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Show replies dialog correctly.
This commit is contained in:
@@ -170,6 +170,10 @@ rpl::producer<bool> PeerFlagValue(
|
||||
|
||||
rpl::producer<bool> CanWriteValue(UserData *user) {
|
||||
using namespace rpl::mappers;
|
||||
|
||||
if (user->isRepliesChat()) {
|
||||
return rpl::single(false);
|
||||
}
|
||||
return PeerFlagValue(user, MTPDuser::Flag::f_deleted)
|
||||
| rpl::map(!_1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user