Repository navigation
Conversation
Telegram lets both participants of a private chat delete any message for everyone, and the redaction handler already revokes with Revoke: true, but DM portals kept the default redact power level (50), so a Matrix user could not redact the other person's messages. Lower redact to 0 in getDMPowerLevels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In a Telegram private chat either participant can delete any message for both sides, and
HandleMatrixMessageRemovealready sendsmessages.deleteMessageswithRevoke: truefor non-channel peers. DM portals, however, keep the default redact power level (50), and the user only has 0, so the homeserver rejects a Matrix redaction of the other person's message. Deleting a spam DM for everyone works in the Telegram apps but not from Matrix.This sets
Redactto 0 ingetDMPowerLevels, so the user can redact either side's messages in a DM portal and the bridge revokes them on Telegram. Group and channel power levels are unchanged.