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

Method GetLocalServerInRoom

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

GetLocalServerInRoom returns true if we think we're in a given room or false otherwise.

(ctx context.Context, roomNID types.RoomNID)

Source from the content-addressed store, hash-verified

158 JoinedUsersSetInRooms(ctx context.Context, roomIDs, userIDs []string) (map[string]int, error)
159 // GetLocalServerInRoom returns true if we think we're in a given room or false otherwise.
160 GetLocalServerInRoom(ctx context.Context, roomNID types.RoomNID) (bool, error)
161 // GetServerInRoom returns true if we think a server is in a given room or false otherwise.
162 GetServerInRoom(ctx context.Context, roomNID types.RoomNID, serverName gomatrixserverlib.ServerName) (bool, error)
163 // GetKnownUsers searches all users that userID knows about.

Callers 3

IsServerCurrentlyInRoomFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected