Browse Source

Fix deleting messages sent as channel

master
Eduard Kuzmenko 3 years ago
parent
commit
de278c35c7
  1. 2
      src/lib/appManagers/appMessagesManager.ts

2
src/lib/appManagers/appMessagesManager.ts

@ -3561,7 +3561,7 @@ export class AppMessagesManager { @@ -3561,7 +3561,7 @@ export class AppMessagesManager {
public canDeleteMessage(message: MyMessage) {
return message && (
message.peerId.isUser()
|| message.fromId === rootScope.myId
|| message.pFlags.out
|| appChatsManager.getChat(message.peerId.toChatId())._ === 'chat'
|| appChatsManager.hasRights(message.peerId.toChatId(), 'delete_messages')
) && !message.pFlags.is_outgoing;

Loading…
Cancel
Save