dependencies: update mautrix-go

This commit is contained in:
Tulir Asokan
2025-08-26 18:07:45 +03:00
parent 9e4b6c3c46
commit 8341492c9f
5 changed files with 65 additions and 66 deletions
+3 -3
View File
@@ -275,12 +275,12 @@ func (c *TelegramClient) convertToMatrix(ctx context.Context, portal *bridgev2.P
// metadata.
if ttl, ok := msg.GetTTLPeriod(); ok {
cm.Disappear = database.DisappearingSetting{
Type: database.DisappearingTypeAfterSend,
Type: event.DisappearingTypeAfterSend,
Timer: time.Duration(ttl) * time.Second,
}
} else if portal.Metadata.(*PortalMetadata).MessagesTTL > 0 {
cm.Disappear = database.DisappearingSetting{
Type: database.DisappearingTypeAfterSend,
Type: event.DisappearingTypeAfterSend,
Timer: time.Duration(ttl) * time.Second,
}
}
@@ -390,7 +390,7 @@ func (c *TelegramClient) convertMediaRequiringUpload(ctx context.Context, portal
}
disappearingSetting = &database.DisappearingSetting{
Type: database.DisappearingTypeAfterRead,
Type: event.DisappearingTypeAfterRead,
Timer: time.Duration(ttl) * time.Second,
}
}