Update mautrix-go (and update to new metadata system)

This commit is contained in:
Scott Weber
2024-07-14 20:52:03 -04:00
committed by Sumner Evans
parent 92b8541654
commit aa45619244
6 changed files with 49 additions and 23 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ func (t *TelegramClient) getReactionLimit(ctx context.Context, sender networkid.
if err != nil {
return 0, err
}
if isPremium, ok := ghost.Metadata.Extra["fi.mau.telegram.is_premium"].(bool); ok && isPremium {
if ghost.Metadata.(*GhostMetadata).IsPremium {
return int(config["reactions_user_max_premium"].(float64)), nil
} else {
return int(config["reactions_user_max_default"].(float64)), nil