mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Show replies dialog correctly.
This commit is contained in:
@@ -541,6 +541,13 @@ void PeerData::fillNames() {
|
||||
if (localized != english) {
|
||||
appendToIndex(localized);
|
||||
}
|
||||
} else if (isRepliesChat()) {
|
||||
const auto english = qsl("Replies");
|
||||
const auto localized = tr::lng_replies_messages(tr::now);
|
||||
appendToIndex(english);
|
||||
if (localized != english) {
|
||||
appendToIndex(localized);
|
||||
}
|
||||
}
|
||||
} else if (const auto channel = asChannel()) {
|
||||
appendToIndex(channel->username);
|
||||
@@ -743,6 +750,10 @@ bool PeerData::isBroadcast() const {
|
||||
return isChannel() ? asChannel()->isBroadcast() : false;
|
||||
}
|
||||
|
||||
bool PeerData::isRepliesChat() const {
|
||||
return (id == peerFromUser(708513));
|
||||
}
|
||||
|
||||
bool PeerData::canWrite() const {
|
||||
if (const auto user = asUser()) {
|
||||
return user->canWrite();
|
||||
|
Reference in New Issue
Block a user