mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 03:30:29 +03:00
Merge branch 'dev' into improve-space
This commit is contained in:
commit
c0056eae9d
6 changed files with 10 additions and 10 deletions
|
|
@ -12,7 +12,7 @@ function addRoomToMDirect(mx, roomId, userId) {
|
|||
const mDirectsEvent = mx.getAccountData('m.direct');
|
||||
let userIdToRoomIds = {};
|
||||
|
||||
if (typeof mDirectsEvent !== 'undefined') userIdToRoomIds = mDirectsEvent.getContent();
|
||||
if (typeof mDirectsEvent !== 'undefined') userIdToRoomIds = structuredClone(mDirectsEvent.getContent());
|
||||
|
||||
// remove it from the lists of any others users
|
||||
// (it can only be a DM room for one person)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue