diff options
| author | default <nobody@localhost> | 2023-07-13 18:18:23 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2023-07-13 18:18:23 +0200 |
| commit | 545af948dbdd571b7c69f6e437fea5bbad4ab766 (patch) | |
| tree | f5f74d654098255a763dea0c09fcdee9bfd36f14 /snac.h | |
| parent | 137f7756059bfcbf74ff551e72f2210e4e77789f (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 'snac.h')
| -rw-r--r-- | snac.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -173,7 +173,7 @@ void enqueue_output(snac *snac, xs_dict *msg, xs_str *inbox, int retries); void enqueue_output_by_actor(snac *snac, xs_dict *msg, const xs_str *actor, int retries); void enqueue_email(xs_str *msg, int retries); void enqueue_telegram(const xs_str *msg, const char *bot, const char *chat_id); -void enqueue_message(snac *snac, char *msg); +void enqueue_message(snac *snac, const xs_dict *msg); void enqueue_close_question(snac *user, const char *id, int end_secs); void enqueue_request_replies(snac *user, const char *id); int was_question_voted(snac *user, const char *id); @@ -235,7 +235,7 @@ int send_to_inbox_raw(const char *keyid, const char *seckey, int send_to_inbox(snac *snac, const xs_str *inbox, const xs_dict *msg, xs_val **payload, int *p_size, int timeout); xs_str *get_actor_inbox(snac *snac, const char *actor); -int send_to_actor(snac *snac, const char *actor, const char *msg, +int send_to_actor(snac *snac, const char *actor, const xs_dict *msg, xs_val **payload, int *p_size, int timeout); int is_msg_public(snac *snac, const xs_dict *msg); int is_msg_for_me(snac *snac, const xs_dict *msg); |