You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Lint
This commit is contained in:
@ -184,8 +184,8 @@ function _getDirectMessageRooms(addr) {
|
|||||||
const dmRoomMap = new DMRoomMap(MatrixClientPeg.get());
|
const dmRoomMap = new DMRoomMap(MatrixClientPeg.get());
|
||||||
const dmRooms = dmRoomMap.getDMRoomsForUserId(addr);
|
const dmRooms = dmRoomMap.getDMRoomsForUserId(addr);
|
||||||
const rooms = [];
|
const rooms = [];
|
||||||
dmRooms.forEach(dmRoom => {
|
dmRooms.forEach((dmRoom) => {
|
||||||
let room = MatrixClientPeg.get().getRoom(dmRoom);
|
const room = MatrixClientPeg.get().getRoom(dmRoom);
|
||||||
if (room) {
|
if (room) {
|
||||||
const me = room.getMember(MatrixClientPeg.get().credentials.userId);
|
const me = room.getMember(MatrixClientPeg.get().credentials.userId);
|
||||||
if (me.membership == 'join') {
|
if (me.membership == 'join') {
|
||||||
|
Reference in New Issue
Block a user