1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-19 10:22:30 +03:00

distinguish unknown users from deviceless users

Fixes https://github.com/vector-im/vector-web/issues/2275
This commit is contained in:
Richard van der Hoff
2016-11-16 18:05:41 +00:00
parent fc958a3922
commit 851b33aac2
5 changed files with 265 additions and 72 deletions

View File

@@ -351,7 +351,7 @@ MatrixClient.prototype.getStoredDevicesForUser = function(userId) {
if (this._crypto === null) {
throw new Error("End-to-end encryption disabled");
}
return this._crypto.getStoredDevicesForUser(userId);
return this._crypto.getStoredDevicesForUser(userId) || [];
};