mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-12 10:10:29 +03:00
No known servers on channel join bug fixed
This commit is contained in:
parent
7fddf80c09
commit
419e25df23
3 changed files with 7 additions and 6 deletions
|
|
@ -85,8 +85,9 @@ function guessDMRoomTargetId(room, myUserId) {
|
|||
*/
|
||||
async function join(roomIdOrAlias, isDM) {
|
||||
const mx = initMatrix.matrixClient;
|
||||
const roomIdParts = roomIdOrAlias.split(':');
|
||||
try {
|
||||
const resultRoom = await mx.joinRoom(roomIdOrAlias);
|
||||
const resultRoom = await mx.joinRoom(roomIdOrAlias, { viaServers: [roomIdParts[1]] });
|
||||
|
||||
if (isDM) {
|
||||
const targetUserId = guessDMRoomTargetId(mx.getRoom(resultRoom.roomId), mx.getUserId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue