Skip to content

Commit

Permalink
fix: Improovs on deleteMessege when received and revoke param is true
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Jul 18, 2024
1 parent 91fec77 commit e842948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat/functions/deleteMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export async function deleteMessage(
// Message is already revoked
sendMsgResult = SendMsgResult.ERROR_UNKNOWN;
isRevoked = true;
} else if (revoke) {
} else if (revoke && isSentByMe) {
if (msg.type === 'list') {
(msg as any).__x_isUserCreatedType = true;
}
Expand Down

1 comment on commit e842948

@jamesxt-94
Copy link

@jamesxt-94 jamesxt-94 commented on e842948 Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit introduces a bug.
Messages by others cannot be revoked on a group (as admin).
Please REVERT this change

Please sign in to comment.