about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-03-31 13:21:16 +0200
committerGitHub <noreply@github.com>2023-03-31 13:21:16 +0200
commit2e1d5d03dc1d8d817532fd71d9e6489f56118415 (patch)
tree9d3945225d6bf15faad9613fa72689612ecde776 /src/event
parent2093fe417f6a1d7f8741613a83ed81e18ae272c9 (diff)
parent407905cfc5a60e90ccf149929eb9517e8287ae57 (diff)
downloadprofani-tty-2e1d5d03dc1d8d817532fd71d9e6489f56118415.tar.gz
Merge pull request #1802 from H3rnand3zzz/pgp-fix
Security fix of OTR, PGP and other
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index b4845b11..eb3e96e7 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -645,8 +645,8 @@ sv_ev_incoming_message(ProfMessage* message)
     chatwin = wins_get_chat(looking_for_jid);
 
     if (!chatwin) {
-        ProfWin* window = wins_new_chat(looking_for_jid);
-        chatwin = (ProfChatWin*)window;
+        chatwin = chatwin_new(looking_for_jid);
+        ProfWin* window = (ProfWin*)chatwin;
         new_win = TRUE;
 
         if (prefs_get_boolean(PREF_MAM)) {
@@ -689,8 +689,7 @@ sv_ev_incoming_carbon(ProfMessage* message)
     gboolean new_win = FALSE;
     ProfChatWin* chatwin = wins_get_chat(message->from_jid->barejid);
     if (!chatwin) {
-        ProfWin* window = wins_new_chat(message->from_jid->barejid);
-        chatwin = (ProfChatWin*)window;
+        chatwin = chatwin_new(message->from_jid->barejid);
         new_win = TRUE;
 
 #ifdef HAVE_OMEMO