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

Method SetRoomAlias

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

Save a given room alias with the room ID it refers to. Returns an error if there was a problem talking to the database.

(ctx context.Context, alias string, roomID string, creatorUserID string)

Source from the content-addressed store, hash-verified

106 // Save a given room alias with the room ID it refers to.
107 // Returns an error if there was a problem talking to the database.
108 SetRoomAlias(ctx context.Context, alias string, roomID string, creatorUserID string) error
109 // Look up the room ID a given alias refers to.
110 // Returns an error if there was a problem talking to the database.
111 GetRoomIDForAlias(ctx context.Context, alias string) (string, error)

Callers 2

SetLocalAliasFunction · 0.65
createRoomFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected