MCPcopy Create free account
hub / github.com/daodst/chat / GetMembership

Method GetMembership

roomserver/storage/interface.go:128–128  ·  view source on GitHub ↗

Lookup the membership of a given user in a given room. Returns the numeric ID of the latest membership event sent from this user in this room, along a boolean set to true if the user is still in this room, false if not. Returns an error if there was a problem talking to the database.

(ctx context.Context, roomNID types.RoomNID, requestSenderUserID string)

Source from the content-addressed store, hash-verified

126 // false if not.
127 // Returns an error if there was a problem talking to the database.
128 GetMembership(ctx context.Context, roomNID types.RoomNID, requestSenderUserID string) (membershipEventNID types.EventNID, stillInRoom, isRoomForgotten bool, err error)
129 // Lookup the membership event numeric IDs for all user that are or have
130 // been members of a given room. Only lookup events of "join" membership if
131 // joinOnly is set to true.

Callers 4

PerformInviteMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected