mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Do not show edit timer for supergroup admins
This commit is contained in:
parent
2cb7d76417
commit
684cfa16b8
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue