Skip to content

Commit

Permalink
fix(RoomsSdkAdapter): fetch room every update
Browse files Browse the repository at this point in the history
  • Loading branch information
adamweeks authored and lalli-flores committed Nov 15, 2019
1 parent f5a4844 commit c99b145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RoomsSDKAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class RoomsSDKAdapter extends RoomsAdapter {
// Is the room change event for our subscribed room?
filter((event) => event.data.id === ID),
// Event data doesn't have the room data in it, so we need to fetch manually
flatMap(() => room$)
flatMap(() => from(this.fetchRoom(ID)))
);

// The observable flow for fetching room data, then listening for websocket events about room changes.
Expand Down

0 comments on commit c99b145

Please sign in to comment.