From 545af948dbdd571b7c69f6e437fea5bbad4ab766 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 13 Jul 2023 18:18:23 +0200 Subject: 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. --- data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data.c') 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); -- cgit v1.2.3