Merge remote-tracking branch 'origin/develop' into develop

pull/21833/head
Weblate 2017-11-07 18:24:25 +00:00
commit 85ea67494c
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ module.exports = React.createClass({
const pinnedEvents = this.props.room.currentState.getStateEvents("m.room.pinned_events", "");
if (!pinnedEvents) return; // nothing to read
let readStateEvents = null;
let readStateEvents = [];
const readPinsEvent = this.props.room.getAccountData("im.vector.room.read_pins");
if (readPinsEvent && readPinsEvent.getContent()) {
readStateEvents = readPinsEvent.getContent().event_ids || [];