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

Method GetStateEvent

syncapi/storage/interface.go:81–81  ·  view source on GitHub ↗

GetStateEvent returns the Matrix state event of a given type for a given room with a given state key If no event could be found, returns nil If there was an issue during the retrieval, returns an error

(ctx context.Context, roomID, evType, stateKey string)

Source from the content-addressed store, hash-verified

79 // If no event could be found, returns nil
80 // If there was an issue during the retrieval, returns an error
81 GetStateEvent(ctx context.Context, roomID, evType, stateKey string) (*gomatrixserverlib.HeaderedEvent, error)
82 // GetStateEventsForRoom fetches the state events for a given room.
83 // Returns an empty slice if no state events could be found for this room.
84 // Returns an error if there was an issue with the retrieval.

Callers 4

SendRedactionFunction · 0.65
SendBanFunction · 0.65
updateStateEventMethod · 0.65
applyLazyLoadMembersMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected