GNOME Bugzilla – Bug 704454
No sound played when account goes online
Last modified: 2013-07-18 11:02:57 UTC
If there is only one disabled account, enabling it won't play sound when it connects. This is because at the time the account's status goes to CONNECTED TpAccountManager's most-available-presence is still OFFLINE. In empathy_sound_pref_is_enabled(), empathy_check_available_state() returns FALSE and if sound is disabled when away it won't be played.
Created attachment 249486 [details] [review] Move empathy_check_available_state() from utils to sound-manager It is used only from one place, there is no reason to have it in utils.
Created attachment 249487 [details] [review] EmpathySoundManager: Fix playing sound when account goes online. We need to use the requested presence instead of the current presence to check if we should play sound, because in the case of an account that just got connected, its current presence may still be OFFLINE.
Review of attachment 249486 [details] [review]: ++
Review of attachment 249487 [details] [review]: ++
Merged in master.