Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Reset store state when logging out #930

Merged

Commits on May 25, 2017

  1. Use RVS to indicate "joining" when setting a mxid

    This prevents RoomView from doing any peeking whilst the join/registration is in progress, causing weirdness with TimelinePanel getPendingEventList (which throws an error if called when peeking).
    Luke Barnard committed May 25, 2017
    Configuration menu
    Copy the full SHA
    91edc06 View commit details
    Browse the repository at this point in the history
  2. Fix view_next_room, view_previous_room and view_indexed_room

    These must now make a dispatch to RoomViewStore instead of calling `viewRoom` directly on MatrixChat. This will call both `viewRoom` of MatrixChat _and_ the logic in RVS so there is some redundancy here. It'd be best to move as much as possible of viewRoom out to the RVS itself.
    
    But for now, this fixes a bug that occures when leaving (the viewed room would not change).
    Luke Barnard committed May 25, 2017
    Configuration menu
    Copy the full SHA
    0849b0e View commit details
    Browse the repository at this point in the history
  3. Reset store state when logging out

    This prevents leaking of state that we do not want to share with the next user
    Luke Barnard committed May 25, 2017
    Configuration menu
    Copy the full SHA
    263a519 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2017

  1. Use the same .reset as RoomViewStore

    Luke Barnard committed May 26, 2017
    Configuration menu
    Copy the full SHA
    9311b90 View commit details
    Browse the repository at this point in the history
  2. Put the reset method in the right scope...

    Luke Barnard committed May 26, 2017
    Configuration menu
    Copy the full SHA
    ac44151 View commit details
    Browse the repository at this point in the history