DBus/remote API: add change_status_message() or so
|Reported by:||Ban||Owned by:|
Gajim's remote API messes a method to update status message. The change_status() method is usable but needs a lot of care not to create side effects: e.g. if you use the simplest and naive call
change_status(get_status(), "new status message", "")
Gajim will try to set the status to 'online' (or so) if any of the accounts is online, which is obviously annoying: if an account is offline, Gajim will try to connect it.
Therefore, the caller have to update each account separately in order not to connect disconnected accounts (or more generally, sync status between accounts), which is IMO too much work and DBus calls for something quite common and simple.
The caller have to do something like that:
for account in list_accounts(): change_status(get_status(account), "new status message", account)
Then, I suggest to add a method such as change_status_message() to the remote API that only changes the status message and not the status itself.