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

Add a TODO about batching events

This commit is contained in:
Richard van der Hoff
2016-08-23 17:27:47 +01:00
parent 9f180179d5
commit e708e59b15

View File

@@ -131,6 +131,12 @@ MegolmEncryption.prototype._ensureOutboundSession = function(room) {
var txnId = txnBase + (txnCtr++);
// TODO: send an OOB message. for now, send an in-band message.
// TODO: aggregate the messages into batches. If we make a
// separate request for each message, we will get rate-limited.
// On the other hand, we can't just send them in one big batch,
// because we'll hit the event size limit.
var path = utils.encodeUri(
"/rooms/$roomId/send/m.room.encrypted/$txnId", {
$roomId: self._roomId,