mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/portal: add temporary flag to slack bridge info
To let clients detect that 952806ea52 is done
This commit is contained in:
parent
a8b5fa9156
commit
4635590fca
2 changed files with 5 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue