diff options
author | James Booth <boothj5@gmail.com> | 2015-09-25 22:55:44 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-09-25 22:55:44 +0100 |
commit | 100db7c36cc40ff740a51d51c2c7887c4d2e138d (patch) | |
tree | 91b5f7a7d1e6d05c8b45f78928e596d8378a0d02 /src/ui/core.c | |
parent | 22ba3db0b27a34f62594adaab4519c854ee72f77 (diff) | |
download | profani-tty-100db7c36cc40ff740a51d51c2c7887c4d2e138d.tar.gz |
Set status to what it was before autoaway
Diffstat (limited to 'src/ui/core.c')
-rw-r--r-- | src/ui/core.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 9f7ffcd7..3950ecea 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -574,12 +574,11 @@ ui_auto_away(void) } void -ui_end_auto_away(void) +ui_end_auto_away(resource_presence_t presence) { - int pri = - accounts_get_priority_for_presence_type(jabber_get_account_name(), RESOURCE_ONLINE); + int pri = accounts_get_priority_for_presence_type(jabber_get_account_name(), presence); cons_show("No longer idle, status set to online (priority %d).", pri); - title_bar_set_presence(CONTACT_ONLINE); + title_bar_set_presence(contact_presence_from_resource_presence(presence)); } void |