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

Move getFriendlyDisplayName to RoomMember class. Add more utlity functions.

This commit is contained in:
Kegan Dougal
2015-06-08 12:21:23 +01:00
parent 7ce3a781f3
commit a2257aeb0b
5 changed files with 103 additions and 41 deletions

View File

@@ -85,10 +85,10 @@ module.exports.MatrixEvent.prototype = {
/**
* Get the event content JSON.
* @return {Object} The event content JSON.
* @return {Object} The event content JSON, or an empty object.
*/
getContent: function() {
return this.event.content;
return this.event.content || {};
},
/**