@songsid/agend 2.1.1-beta.22 → 2.1.1-beta.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4859,6 +4859,12 @@ When users create specialized instances, suggest these configurations:
4859
4859
  meta.image_path = saves[saves.length - 1][1].split(",")[0].trim();
4860
4860
  }
4861
4861
  }
4862
+ // Classic channels queue reactions like everyone else (#432 stored them, but
4863
+ // this path never attached them — reactions in a ClassicBot channel went into
4864
+ // the DB and were never seen again). Same contract as the topic paths:
4865
+ // consumed only after the delivery succeeded.
4866
+ const reactions = this.pendingReactionsMeta(instanceName);
4867
+ Object.assign(meta, reactions.meta);
4862
4868
  try {
4863
4869
  await this.deliverToInstance(instanceName, {
4864
4870
  type: "fleet_inbound",
@@ -4866,6 +4872,7 @@ When users create specialized instances, suggest these configurations:
4866
4872
  targetSession: instanceName,
4867
4873
  meta,
4868
4874
  });
4875
+ reactions.consume();
4869
4876
  }
4870
4877
  catch (err) {
4871
4878
  this.logger.warn({ err: err.message, instanceName }, "Classic wake/delivery failed");