diff options
| author | 2023-07-13 18:18:23 +0200 | |
|---|---|---|
| committer | 2023-07-13 18:18:23 +0200 | |
| commit | 545af948dbdd571b7c69f6e437fea5bbad4ab766 (patch) | |
| tree | f5f74d654098255a763dea0c09fcdee9bfd36f14 /data.c | |
| parent | Minor prototype tweak. (diff) | |
| download | snac2-545af948dbdd571b7c69f6e437fea5bbad4ab766.tar.gz snac2-545af948dbdd571b7c69f6e437fea5bbad4ab766.tar.xz snac2-545af948dbdd571b7c69f6e437fea5bbad4ab766.zip | |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2092,7 +2092,7 @@ void enqueue_telegram(const xs_str *msg, const char *bot, const char *chat_id) | |||
| 2092 | } | 2092 | } |
| 2093 | 2093 | ||
| 2094 | 2094 | ||
| 2095 | void enqueue_message(snac *snac, xs_dict *msg) | 2095 | void enqueue_message(snac *snac, const xs_dict *msg) |
| 2096 | /* enqueues an output message */ | 2096 | /* enqueues an output message */ |
| 2097 | { | 2097 | { |
| 2098 | xs *qmsg = _new_qmsg("message", msg, 0); | 2098 | xs *qmsg = _new_qmsg("message", msg, 0); |