2
0
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:
John Preston
2020-09-11 18:33:26 +03:00
parent 608d8307d9
commit 4a94a0c438
42 changed files with 345 additions and 58 deletions

View File

@@ -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);
}