handlematrix: bridge outgoing message redactions
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user