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(), ID: capID(),
Reply: event.CapLevelFullySupported, Reply: event.CapLevelFullySupported,
Reaction: event.CapLevelFullySupported, Reaction: event.CapLevelFullySupported,
Delete: event.CapLevelFullySupported,
Formatting: event.FormattingFeatureMap{ Formatting: event.FormattingFeatureMap{
event.FmtBold: event.CapLevelFullySupported, event.FmtBold: event.CapLevelFullySupported,
event.FmtItalic: event.CapLevelFullySupported, event.FmtItalic: event.CapLevelFullySupported,

View File

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