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

Method AddState

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

Store the room state at an event in the database

(
		ctx context.Context,
		roomNID types.RoomNID,
		stateBlockNIDs []types.StateBlockNID,
		state []types.StateEntry,
	)

Source from the content-addressed store, hash-verified

30 RoomInfo(ctx context.Context, roomID string) (*types.RoomInfo, error)
31 // Store the room state at an event in the database
32 AddState(
33 ctx context.Context,
34 roomNID types.RoomNID,
35 stateBlockNIDs []types.StateBlockNID,

Callers 2

backfillViaFederationMethod · 0.65
calculateAndSetStateMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected