telepathy: Make group changes truly asynchronous and report errors properly
authorPhilip Withnall <philip@tecnocode.co.uk>
Mon, 26 Mar 2012 14:07:31 +0000 (15:07 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 17 Apr 2012 10:58:13 +0000 (11:58 +0100)
commit46ca881a18febf9848ea96379cfd3ee004c6ab6f
tree3d4904f9e26f56cd4384040774088a0c03ca9ddd
parent9a7015cac1fedee8154bce6d267a0a0a89a6d40b
telepathy: Make group changes truly asynchronous and report errors properly

Take advantage of GroupDetails.change_group() being async, and wait for the
underlying Telepathy operation to complete before returning from it. This
allows us to propagate errors properly, rather than just printing
them as warnings on the terminal.

This also includes changes to not notify of changes to Tpf.Persona.groups
until Telepathy has notified us of the change. This should prevent groups
changing in the UI if the underlying operation has actually failed.

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=671662
backends/telepathy/lib/tpf-persona-store.vala
backends/telepathy/lib/tpf-persona.vala