diff options
author | Jacki <jacki@thejackimonster.de> | 2024-02-11 09:03:51 +0100 |
---|---|---|
committer | Jacki <jacki@thejackimonster.de> | 2024-02-11 09:03:51 +0100 |
commit | 196a4ebac19eb5c673eb343ff1d48defe43ad68b (patch) | |
tree | 85c05bbe01682740dfc6f439de65930b28339e3b /src/gnunet_chat_lib.c | |
parent | 1359cceb2003ad96a57a1e8ecac99ed00da80bb9 (diff) | |
download | libgnunetchat-196a4ebac19eb5c673eb343ff1d48defe43ad68b.tar.gz libgnunetchat-196a4ebac19eb5c673eb343ff1d48defe43ad68b.zip |
Fix selection of context for blocked state
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat (limited to 'src/gnunet_chat_lib.c')
-rw-r--r-- | src/gnunet_chat_lib.c | 7 |
1 files changed, 1 insertions, 6 deletions
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) | |||
967 | if (!contact) | 967 | if (!contact) |
968 | return GNUNET_SYSERR; | 968 | return GNUNET_SYSERR; |
969 | 969 | ||
970 | struct GNUNET_CHAT_Context *context = contact_find_context(contact); | 970 | return contact_is_blocked(contact, NULL); |
971 | |||
972 | if (!context) | ||
973 | return GNUNET_SYSERR; | ||
974 | |||
975 | return contact_is_blocked(contact, context); | ||
976 | } | 971 | } |
977 | 972 | ||
978 | 973 | ||