mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Lint
This commit is contained in:
parent
5d0b9d73b4
commit
2f3e0fb049
1 changed files with 2 additions and 2 deletions
|
@ -184,8 +184,8 @@ function _getDirectMessageRooms(addr) {
|
|||
const dmRoomMap = new DMRoomMap(MatrixClientPeg.get());
|
||||
const dmRooms = dmRoomMap.getDMRoomsForUserId(addr);
|
||||
const rooms = [];
|
||||
dmRooms.forEach(dmRoom => {
|
||||
let room = MatrixClientPeg.get().getRoom(dmRoom);
|
||||
dmRooms.forEach((dmRoom) => {
|
||||
const room = MatrixClientPeg.get().getRoom(dmRoom);
|
||||
if (room) {
|
||||
const me = room.getMember(MatrixClientPeg.get().credentials.userId);
|
||||
if (me.membership == 'join') {
|
||||
|
|
Loading…
Reference in a new issue