Add option to unset your own avatar

Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Travis Ralston 2017-10-13 21:13:32 -06:00
parent e5c8e3e7ad
commit 6e7f0d649b
2 changed files with 14 additions and 1 deletions

View file

@ -74,6 +74,10 @@ module.exports = React.createClass({
},
onRoomStateEvents: function(ev) {
if (!this.props.room) {
return;
}
if (ev.getRoomId() !== this.props.room.roomId || ev.getType() !== 'm.room.avatar'
|| ev.getSender() !== MatrixClientPeg.get().getUserId()) {
return;