Merge pull request #2131 from matrix-org/dbkr/change_mau_server_notice_format

Change format of server usage limit message
This commit is contained in:
David Baker 2018-08-23 09:32:56 +01:00 committed by GitHub
commit b34aad50bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,7 +434,10 @@ const LoggedInView = React.createClass({
}
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;