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
+1 -1
View File
@@ -174,7 +174,7 @@ func (t *TelegramClient) getGroupChatInfo(fullChat *tg.MessagesChatFull, chatID
if ttl, ok := fullChat.FullChat.GetTTLPeriod(); ok {
chatInfo.Disappear = &database.DisappearingSetting{
Type: database.DisappearingTypeAfterSend,
Type: event.DisappearingTypeAfterSend,
Timer: time.Duration(ttl) * time.Second,
}
}
+2 -3
View File
@@ -37,14 +37,13 @@ import (
"maunium.net/go/mautrix/bridgev2/status"
"maunium.net/go/mautrix/event"
"go.mau.fi/mautrix-telegram/pkg/gotd/tg"
"go.mau.fi/mautrix-telegram/pkg/gotd/tgerr"
"go.mau.fi/mautrix-telegram/pkg/connector/emojis"
"go.mau.fi/mautrix-telegram/pkg/connector/ids"
"go.mau.fi/mautrix-telegram/pkg/connector/media"
"go.mau.fi/mautrix-telegram/pkg/connector/tljson"
"go.mau.fi/mautrix-telegram/pkg/connector/util"
"go.mau.fi/mautrix-telegram/pkg/gotd/tg"
"go.mau.fi/mautrix-telegram/pkg/gotd/tgerr"
)
type IGetMessage interface {
+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,
}
}