This commit is contained in:
Matthew Hodgson
2016-07-20 10:17:54 +01:00
parent 58a68106bc
commit fa28297add
+2 -1
View File
@@ -256,13 +256,14 @@ module.exports.MatrixInMemoryStore.prototype = {
storeAccountDataEvents: function(events) {
var self = this;
events.forEach(function(event) {
self.accountData[event.type] = event.content;
self.accountData[event.getType()] = event;
});
},
/**
* Get account data event by event type
* @param {string} eventType The event type being queried
* @return {MatrixEvent} the user account_data event of given type
*/
getAccountData: function(eventType) {
return this.accountData[eventType];