mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
event: fix content of io.element.functional_members
This commit is contained in:
parent
c51be40fbe
commit
34cbfc2601
3 changed files with 3 additions and 3 deletions
|
|
@ -1711,7 +1711,7 @@ func (portal *Portal) CreateMatrixRoom(ctx context.Context, source *UserLogin, i
|
|||
StateKey: &emptyString,
|
||||
Type: event.StateElementFunctionalMembers,
|
||||
Content: event.Content{Parsed: &event.ElementFunctionalMembersContent{
|
||||
FunctionalMembers: append(extraFunctionalMembers, portal.Bridge.Bot.GetMXID()),
|
||||
ServiceMembers: append(extraFunctionalMembers, portal.Bridge.Bot.GetMXID()),
|
||||
}},
|
||||
}, &event.Event{
|
||||
StateKey: &bridgeInfoStateKey,
|
||||
|
|
|
|||
|
|
@ -195,5 +195,5 @@ type InsertionMarkerContent struct {
|
|||
}
|
||||
|
||||
type ElementFunctionalMembersContent struct {
|
||||
FunctionalMembers []id.UserID `json:"functional_members"`
|
||||
ServiceMembers []id.UserID `json:"service_members"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ func (h *HiClient) calculateRoomParticipantName(ctx context.Context, roomID id.R
|
|||
_ = mautrixEvt.Content.ParseRaw(mautrixEvt.Type)
|
||||
content, ok := mautrixEvt.Content.Parsed.(*event.ElementFunctionalMembersContent)
|
||||
if ok {
|
||||
functionalMembers = content.FunctionalMembers
|
||||
functionalMembers = content.ServiceMembers
|
||||
}
|
||||
}
|
||||
var members, leftMembers []string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue