1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

fix review feedback

This commit is contained in:
Matthew Hodgson
2016-07-20 15:40:58 +01:00
parent c00a830cbb
commit 1412646a55
3 changed files with 12 additions and 10 deletions

View File

@@ -250,7 +250,9 @@ module.exports.MatrixInMemoryStore.prototype = {
},
/**
* Store user-scoped account data events
* Store user-scoped account data events.
* N.B. that account data only allows a single event per type, so multiple
* events with the same type will replace each other.
* @param {Array<MatrixEvent>} events The events to store.
*/
storeAccountDataEvents: function(events) {
@@ -263,7 +265,7 @@ module.exports.MatrixInMemoryStore.prototype = {
/**
* 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
* @return {?MatrixEvent} the user account_data event of given type, if any
*/
getAccountData: function(eventType) {
return this.accountData[eventType];