about summary refs log tree commit diff stats
path: root/src/otr
diff options
context:
space:
mode:
authorJohn Hernandez <129467592+H3rnand3zzz@users.noreply.github.com>2023-03-31 02:48:20 +0200
committerJohn Hernandez <129467592+H3rnand3zzz@users.noreply.github.com>2023-03-31 12:30:51 +0200
commit99c9f150f68ae7087e51f217ebd62010fcf07c16 (patch)
treef7873374335b37ecb46d6b69cc11f230deed7829 /src/otr
parent2093fe417f6a1d7f8741613a83ed81e18ae272c9 (diff)
downloadprofani-tty-99c9f150f68ae7087e51f217ebd62010fcf07c16.tar.gz
Fix PGP
Fix of PGP and potentially other encryption methods by calling correct function that would initiate them in case if someone writes.
Diffstat (limited to 'src/otr')
-rw-r--r--src/otr/otr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 3297ce57..bbad51d5 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -151,7 +151,7 @@ cb_gone_secure(void* opdata, ConnContext* context)
 {
     ProfChatWin* chatwin = wins_get_chat(context->username);
     if (!chatwin) {
-        chatwin = (ProfChatWin*)wins_new_chat(context->username);
+        chatwin = chatwin_new(context->username);
     }
 
     chatwin_otr_secured(chatwin, otr_is_trusted(context->username));