about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 8c7eca2e..6bf43d94 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -656,6 +656,14 @@ ui_focus_win(ProfWin *window)
         cmd_ac_remove_form_fields(confwin->form);
     }
 
+    // TODO: if old win is chatwin; and has lastreadline; then remove that line
+    if (old_current->type == WIN_CHAT) {
+        ProfChatWin *chatwin = (ProfChatWin*)old_current;
+        assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK);
+        //win_update_entry_message_real(old_current, chatwin->barejid, "$$$");
+        win_remove_entry_message(old_current, chatwin->barejid);
+    }
+
     if (window->type == WIN_CONFIG) {
         ProfConfWin *confwin = (ProfConfWin*)window;
         cmd_ac_add_form_fields(confwin->form);