as we were mutating the content of m.direct the sdk was comparing old value with new one and preventing update if found equal
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)