David Baker 2018-08-22 17:54:02 +01:00
parent 454d78254d
commit 3b0b836637
1 changed files with 4 additions and 1 deletions

View File

@ -434,7 +434,10 @@ const LoggedInView = React.createClass({
} }
const usageLimitEvent = this.state.serverNoticeEvents.find((e) => { const usageLimitEvent = this.state.serverNoticeEvents.find((e) => {
return e && e.getType() === 'm.server_notice.usage_limit_reached'; return (
e && e.getType() === 'm.room.message' &&
e.getContent()['server_notice_type'] === 'm.server_notice.usage_limit_reached'
);
}); });
let topBar; let topBar;