mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 13:22:46 +00:00
Add MXIDMapping
for pseudoID rooms (#3112)
Add `MXIDMapping` on membership events when creating/joining rooms.
This commit is contained in:
parent
4722f12fab
commit
23cd7877a1
41 changed files with 593 additions and 177 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
"unsafe"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||
)
|
||||
|
||||
// HeaderedEvent is an Event which serialises to the headered form, which includes
|
||||
|
@ -25,6 +26,10 @@ import (
|
|||
type HeaderedEvent struct {
|
||||
gomatrixserverlib.PDU
|
||||
Visibility gomatrixserverlib.HistoryVisibility
|
||||
// TODO: Remove this. This is a temporary workaround to store the userID in the syncAPI.
|
||||
// It really should be the userKey instead.
|
||||
UserID spec.UserID
|
||||
StateKeyResolved *string
|
||||
}
|
||||
|
||||
func (h *HeaderedEvent) CacheCost() int {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue