Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Make state event redaction handling gentler with homeserver
Browse files Browse the repository at this point in the history
Remove no more used `initHistory(List<Event> stateEvents)`
  • Loading branch information
manuroe committed Mar 30, 2018
1 parent 4887d32 commit 5d784cd
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,34 +311,6 @@ public void initHistory() {
}
}

/**
* Init the history with a list of stateEvents
*
* @param stateEvents the state events
*/
private void initHistory(List<Event> stateEvents) {
// clear the states
mState = new RoomState();
mState.roomId = mRoomId;
mState.setDataHandler(mDataHandler);

if (null != stateEvents) {
for (Event event : stateEvents) {
try {
processStateEvent(event, Direction.FORWARDS);
} catch (Exception e) {
Log.e(LOG_TAG, "initHistory failed " + e.getMessage());
}
}
}

mStore.storeLiveStateForRoom(mRoomId);
initHistory();

// warn that there was a flush
mDataHandler.onRoomFlush(mRoomId);
}

/**
* @return The state of the room at the top most recent event of the timeline.
*/
Expand Down

0 comments on commit 5d784cd

Please # to comment.