Revert "Upgrade Matrix SDK"
This reverts commit 9bee01c637a28c979342e321f1b5e6d3dcd4b0d2.
This commit is contained in:
parent
ed1342065b
commit
e1359973b9
3 changed files with 41 additions and 83 deletions
|
|
@ -299,8 +299,10 @@ class Util {
|
|||
if (err && err.name == "UnknownDeviceError") {
|
||||
console.log("Unknown devices. Mark as known before retrying.");
|
||||
var setAsKnownPromises = [];
|
||||
err.devices.forEach((userDevices, user) => {
|
||||
userDevices.forEach((deviceInfo, deviceId) => {
|
||||
for (var user of Object.keys(err.devices)) {
|
||||
const userDevices = err.devices[user];
|
||||
for (var deviceId of Object.keys(userDevices)) {
|
||||
const deviceInfo = userDevices[deviceId];
|
||||
if (!deviceInfo.known) {
|
||||
setAsKnownPromises.push(
|
||||
matrixClient.setDeviceKnown(
|
||||
|
|
@ -310,9 +312,9 @@ class Util {
|
|||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
return Promise.all(setAsKnownPromises)
|
||||
}
|
||||
}
|
||||
Promise.all(setAsKnownPromises)
|
||||
.then(() => {
|
||||
// All devices now marked as "known", try to resend
|
||||
let event = err.event;
|
||||
|
|
@ -497,6 +499,7 @@ class Util {
|
|||
// Have we changed our local view mode of this room?
|
||||
const tags = room.tags;
|
||||
if (tags && tags["ui_options"]) {
|
||||
console.error("We have a tag!");
|
||||
if (tags["ui_options"]["voice_mode"] === 1) {
|
||||
return ROOM_TYPE_VOICE_MODE;
|
||||
} else if (tags["ui_options"]["file_mode"] === 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue