2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Fix minimal width of message bubble with comments.

This commit is contained in:
John Preston
2020-09-11 21:55:22 +03:00
parent 3a51303fb0
commit e9dffe78e3
2 changed files with 35 additions and 5 deletions

View File

@@ -751,7 +751,14 @@ bool PeerData::isBroadcast() const {
}
bool PeerData::isRepliesChat() const {
return (id == peerFromUser(708513));
constexpr auto kProductionId = peerFromUser(1271266957);
constexpr auto kTestId = peerFromUser(708513);
if (id != kTestId && id != kProductionId) {
return false;
}
return ((session().mtp().environment() == MTP::Environment::Production)
? kProductionId
: kTestId) == id;
}
bool PeerData::canWrite() const {