handlematrix: bridge outgoing message redactions

This commit is contained in:
Skip R
2025-12-17 19:04:46 -08:00
parent e030c9548c
commit 7a19f09683
2 changed files with 5 additions and 3 deletions

View File

@@ -58,6 +58,7 @@ var discordCaps = &event.RoomFeatures{
ID: capID(),
Reply: event.CapLevelFullySupported,
Reaction: event.CapLevelFullySupported,
Delete: event.CapLevelFullySupported,
Formatting: event.FormattingFeatureMap{
event.FmtBold: event.CapLevelFullySupported,
event.FmtItalic: event.CapLevelFullySupported,

View File

@@ -104,9 +104,10 @@ func (d *DiscordClient) HandleMatrixReactionRemove(ctx context.Context, removal
return err
}
func (d *DiscordClient) HandleMatrixMessageRemove(ctx context.Context, msg *bridgev2.MatrixMessageRemove) error {
//TODO implement me
panic("implement me")
func (d *DiscordClient) HandleMatrixMessageRemove(ctx context.Context, removal *bridgev2.MatrixMessageRemove) error {
channelID := string(removal.Portal.ID)
messageID := string(removal.TargetMessage.ID)
return d.Session.ChannelMessageDelete(channelID, messageID)
}
func (d *DiscordClient) HandleMatrixReadReceipt(ctx context.Context, msg *bridgev2.MatrixReadReceipt) error {