diff options
author | James Booth <boothj5@gmail.com> | 2015-01-11 23:04:22 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-11 23:04:22 +0000 |
commit | 13f0166aa04bce5e64803900d8554c92b6f3c667 (patch) | |
tree | 220f1afb5f143b89886b18c24ec75c918606a9f1 /src/command/commands.c | |
parent | c16871d143a00eeb04d40e7b4ab20590b8ae93c6 (diff) | |
download | profani-tty-13f0166aa04bce5e64803900d8554c92b6f3c667.tar.gz |
Only show UI events for chat states when in session
Diffstat (limited to 'src/command/commands.c')
-rw-r--r-- | src/command/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 08bd31cf..21b3a567 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1624,11 +1624,15 @@ cmd_resource(gchar **args, struct cmd_help_t help) } chatwin->resource_override = strdup(resource); + chat_state_free(chatwin->state); + chatwin->state = chat_state_new(); chat_session_resource_override(chatwin->barejid, resource); return TRUE; } else if (g_strcmp0(cmd, "off") == 0) { FREE_SET_NULL(chatwin->resource_override); + chat_state_free(chatwin->state); + chatwin->state = chat_state_new(); chat_session_remove(chatwin->barejid); return TRUE; } else { |