You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-05 17:02:07 +03:00
pick the first member, dont need an array
This commit is contained in:
@@ -310,7 +310,7 @@ Room.prototype.guessDMUserId = function() {
|
|||||||
return this._summaryHeroes[0];
|
return this._summaryHeroes[0];
|
||||||
}
|
}
|
||||||
const members = this.currentState.getMembers();
|
const members = this.currentState.getMembers();
|
||||||
const anyMember = members.filter((m) => m.userId !== this.myUserId);
|
const anyMember = members.find((m) => m.userId !== this.myUserId);
|
||||||
if (anyMember) {
|
if (anyMember) {
|
||||||
}
|
}
|
||||||
const createEvent = this.currentState.getStateEvents("m.room.create", "");
|
const createEvent = this.currentState.getStateEvents("m.room.create", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user