aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-07-13 18:18:23 +0200
committerdefault <nobody@localhost>2023-07-13 18:18:23 +0200
commit545af948dbdd571b7c69f6e437fea5bbad4ab766 (patch)
treef5f74d654098255a763dea0c09fcdee9bfd36f14 /data.c
parent137f7756059bfcbf74ff551e72f2210e4e77789f (diff)
New function post_message(), to send a message bypassing the output queue.
This is used when accepting Follow requests; this way, follows are confirmed as fast as possible. If the message cannot be immediately sent, it's queued as always.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index 2c2ff8b..24a0bc8 100644
--- a/data.c
+++ b/data.c
@@ -2092,7 +2092,7 @@ void enqueue_telegram(const xs_str *msg, const char *bot, const char *chat_id)
}
-void enqueue_message(snac *snac, xs_dict *msg)
+void enqueue_message(snac *snac, const xs_dict *msg)
/* enqueues an output message */
{
xs *qmsg = _new_qmsg("message", msg, 0);