From 751edd477278805a09dab6efae703d44568c4133 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 27 Nov 2022 12:37:35 +0000 Subject: [PATCH] Comment that the function blocks if there are no fresh messages --- deltachat-ffi/deltachat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 175ee411d..cb1288271 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -1281,6 +1281,8 @@ dc_array_t* dc_get_fresh_msgs (dc_context_t* context); /** * Returns the ID of the fresh message of any chat. * + * If there is no such message, the function blocks until there is one. + * * @memberof dc_context_t * @param context The context object as returned from dc_context_new(). * @return Message ID of the next fresh message. Returns 0 on error.