Skip to content

Commit 0ff611e

Browse files
committed
Enum and linter
1 parent 737cada commit 0ff611e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/room.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ Room.prototype.getBlacklistUnverifiedDevices = function() {
818818
*/
819819
Room.prototype.getAvatarUrl = function(baseUrl, width, height, resizeMethod,
820820
allowDefault) {
821-
const roomAvatarEvent = this.currentState.getStateEvents("m.room.avatar", "");
821+
const roomAvatarEvent = this.currentState.getStateEvents(EventType.RoomAvatar, "");
822822
if (allowDefault === undefined) {
823823
allowDefault = true;
824824
}
@@ -841,9 +841,9 @@ Room.prototype.getAvatarUrl = function(baseUrl, width, height, resizeMethod,
841841
* @return {string} the mxc avatar url or falsy
842842
*/
843843
Room.prototype.getMxcAvatarUrl = function() {
844-
const roomAvatarEvent = this.currentState.getStateEvents("m.room.avatar", "");
844+
const roomAvatarEvent = this.currentState.getStateEvents(EventType.RoomAvatar, "");
845845
return roomAvatarEvent ? roomAvatarEvent.getContent().url : null;
846-
}
846+
};
847847

848848
/**
849849
* Get the aliases this room has according to the room's state

0 commit comments

Comments
 (0)