From 196a4ebac19eb5c673eb343ff1d48defe43ad68b Mon Sep 17 00:00:00 2001 From: Jacki Date: Sun, 11 Feb 2024 09:03:51 +0100 Subject: Fix selection of context for blocked state Signed-off-by: Jacki --- src/gnunet_chat_lib.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gnunet_chat_lib.c') diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index a5bd4d6..c167146 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c @@ -967,12 +967,7 @@ GNUNET_CHAT_contact_is_blocked (const struct GNUNET_CHAT_Contact *contact) if (!contact) return GNUNET_SYSERR; - struct GNUNET_CHAT_Context *context = contact_find_context(contact); - - if (!context) - return GNUNET_SYSERR; - - return contact_is_blocked(contact, context); + return contact_is_blocked(contact, NULL); } -- cgit v1.2.3