1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
David Baker
2016-01-25 17:49:41 +00:00
parent 7a4cc62280
commit 15e8784daf
2 changed files with 18 additions and 1 deletions

View File

@@ -620,6 +620,17 @@ Room.prototype.addReceipt = function(event) {
this.emit("Room.receipt", event, this);
};
/**
* Add a temporary local-echo receipt to the room to reflect in the
* client the fact that we've sent one.
* @param {string} user_id The user ID if the receipt sender
* @param {MatrixEvent} e The event that is to be acknowledged
* @param {string} receipt_type The type of receipt
*/
Room.prototype._addLocalEchoReceipt = function(user_id, e, receipt_type) {
this.addReceipt(synthesizeReceipt(user_id, e, receipt_type));
};
/**
* Update the room-tag event for the room. The previous one is overwritten.
* @param {MatrixEvent} event the m.tag event