about summary refs log tree commit diff stats
path: root/src/otr/otr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 6b9dd34d..8d1ee545 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -739,7 +739,10 @@ otr_decrypt_message(const char *const from, const char *const message, gboolean
         if (tlv) {
             if (context) {
                 otrl_context_force_plaintext(context);
-                ui_gone_insecure(from);
+                ProfChatWin *chatwin = wins_get_chat(from);
+                if (chatwin) {
+                    ui_gone_insecure(chatwin);
+                }
             }
         }