mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 12:00:48 +00:00
Do not show edit timer for supergroup admins
This commit is contained in:
parent
2cb7d76417
commit
684cfa16b8
@ -6685,6 +6685,12 @@ void HistoryWidget::paintEditHeader(Painter &p, const QRect &rect, int left, int
|
||||
|
||||
if (!_replyEditMsg || _replyEditMsg->history()->peer->isSelf()) return;
|
||||
|
||||
if (const auto megagroup = _replyEditMsg->history()->peer->asMegagroup()) {
|
||||
if (megagroup->amCreator() || megagroup->hasAdminRights()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
QString editTimeLeftText;
|
||||
int updateIn = -1;
|
||||
auto timeSinceMessage = ItemDateTime(_replyEditMsg).msecsTo(QDateTime::currentDateTime());
|
||||
|
Loading…
Reference in New Issue
Block a user