Add option to unset your own avatar
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
e5c8e3e7ad
commit
6e7f0d649b
2 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue