bridgev2/portal: add temporary flag to slack bridge info

To let clients detect that 952806ea52 is done
This commit is contained in:
Tulir Asokan 2025-09-22 18:24:26 +03:00
commit 4635590fca
2 changed files with 5 additions and 0 deletions

View file

@ -3822,6 +3822,9 @@ func (portal *Portal) getBridgeInfo() (string, event.BridgeEventContent) {
if portal.RoomType == database.RoomTypeDM || portal.RoomType == database.RoomTypeGroupDM {
bridgeInfo.BeeperRoomType = "dm"
}
if bridgeInfo.Protocol.ID == "slackgo" {
bridgeInfo.TempSlackRemoteIDMigratedFlag = true
}
parent := portal.GetTopLevelParent()
if parent != nil {
bridgeInfo.Network = &event.BridgeInfoSection{

View file

@ -231,6 +231,8 @@ type BridgeEventContent struct {
BeeperRoomType string `json:"com.beeper.room_type,omitempty"`
BeeperRoomTypeV2 string `json:"com.beeper.room_type.v2,omitempty"`
TempSlackRemoteIDMigratedFlag bool `json:"com.beeper.slack_remote_id_migrated,omitempty"`
}
// DisappearingType represents the type of a disappearing message timer.