You've already forked matrix-js-sdk
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:
@@ -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 || {};
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user