mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fix Edit option display for supergroup creator.
Supergroup creator saw the Edit option for other users messages.
This commit is contained in:
parent
bca0e1e16c
commit
0d38106ed0
@ -849,7 +849,7 @@ bool HistoryItem::canEdit(const QDateTime &cur) const {
|
||||
return true;
|
||||
}
|
||||
if (auto channel = _history->peer->asChannel()) {
|
||||
if (channel->canEditMessages()) {
|
||||
if (isPost() && channel->canEditMessages()) {
|
||||
return true;
|
||||
}
|
||||
if (out()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user