purple: fix wrong buddy state
commitc83efb856ae1f2095f264be5dd8f35e3eedda128
authorMichael Olbrich <m.olbrich@pengutronix.de>
Wed, 11 Jul 2018 10:44:26 +0000 (11 12:44 +0200)
committerStefan Becker <chemobejk@gmail.com>
Mon, 20 Aug 2018 09:48:20 +0000 (20 12:48 +0300)
treea5745c816264fb709d89baa8c110eb793a4ad56f
parentd757db77b832fbcb3ff331d7f9ce341d794c1d1b
purple: fix wrong buddy state

This fixes commit 523e530afc27c674e8e9fd76d9f7b1e11c4ea76a which
incorrectly updated the purple buddy message using the old buddy status
instead of the new activity.

We now also clear the purple buddy message when there is no status
message for the buddy, e.g. when he goes offline.

(cherry picked from commit 4a94d31ed7adc83e669693343131a2d4e1d2385d)
src/purple/purple-buddy.c