connector: set IsSuperGroup on dialog sync

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2025-01-09 18:59:13 -07:00
parent 664d6050df
commit f4052dcfd3
3 changed files with 10 additions and 4 deletions
+1 -4
View File
@@ -124,10 +124,7 @@ func (t *TelegramClient) getGroupChatInfo(fullChat *tg.MessagesChatFull, chatID
},
CanBackfill: true,
ExtraUpdates: func(ctx context.Context, p *bridgev2.Portal) bool {
meta := p.Metadata.(*PortalMetadata)
changed := meta.IsSuperGroup != isMegagroup
meta.IsSuperGroup = isMegagroup
return changed
return p.Metadata.(*PortalMetadata).SetIsSuperGroup(isMegagroup)
},
}