Skip to content

Commit

Permalink
add comment to make clear that RoomStateEvent.Events does not update …
Browse files Browse the repository at this point in the history
…related objects in the js-sdk (#4152)

Signed-off-by: Timo K <[email protected]>
  • Loading branch information
toger5 authored Apr 17, 2024
1 parent c30e498 commit 4fc6ba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/room-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export enum RoomStateEvent {
export type RoomStateEventHandlerMap = {
/**
* Fires whenever the event dictionary in room state is updated.
* This does not guarantee that any related objects (like RoomMember) have been updated.
* Use RoomStateEvent.Update for that.
* @param event - The matrix event which caused this event to fire.
* @param state - The room state whose RoomState.events dictionary
* was updated.
Expand Down

0 comments on commit 4fc6ba8

Please sign in to comment.