You've already forked matrix-js-sdk
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user