1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-09-03 08:42:03 +03:00

Handle presence key in /sync

This commit is contained in:
Kegan Dougal
2015-12-09 16:09:47 +00:00
parent b622960b32
commit 243bdd78f4
3 changed files with 81 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ module.exports.MatrixEvent.prototype = {
* @return {string} The user ID, e.g. <code>@alice:matrix.org</code>
*/
getSender: function() {
return this.event.user_id;
return this.event.sender || this.event.user_id; // v2 / v1
},
/**