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

fix some review feedback; add initial api for setting & deleting tags; still a WIP

This commit is contained in:
Matthew Hodgson
2015-11-04 02:24:36 +00:00
parent 5a1cc4c2e7
commit 149ed04a4f
2 changed files with 41 additions and 4 deletions

View File

@@ -423,12 +423,12 @@ Room.prototype.addTags = function(event) {
// }
// }
// XXX: do we need to deep copy here?
this.tags = event.getContent().tags;
// XXX: we could do a deep-comparison to see if the tags have really
// changed - but do we want to bother?
this.emit("Room.tags", this);
// XXX: do we need to deep copy here?
this.tags = event.content.tags;
};
function setEventMetadata(event, stateContext, toStartOfTimeline) {