status: fix broken busy->available switch
commit05ba791f4a46240c7ed165075eddd4e903345eac
authorStefan Becker <chemobejk@gmail.com>
Thu, 2 Aug 2012 07:08:10 +0000 (2 10:08 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sat, 4 Aug 2012 20:14:33 +0000 (4 23:14 +0300)
tree9a3a0806dffd8910ffcd68666baa6fc3bfce2ead
parentfdf5006d3295856d8c92cf12273233a46a32c405
status: fix broken busy->available switch

Commit 6e3a4db91e3f2c664e36005845bed46b5c4bac59 broke the status
switching for meeting/phone calls, because the re-factoring didn't take
into account that purple_savedstatus_activate() will trigger a call to
sipe_purple_set_status(). That code requires do_not_publish[] to be
updated already, which in the new code happened *AFTER* the call.

Split the functionality of sipe_backend_status_and_note() into two
functions and update sipe_status_and_note() accordingly.

Updated the code in the Miranda backend too, but it is untested.
(cherry picked from commit b7db31744cb52ddf427f65dabf18632b3891f280)
src/api/sipe-backend.h
src/core/sipe-status.c
src/miranda/miranda-status.c
src/purple/purple-status.c