Commit 74bb1d2d authored by Philip Withnall's avatar Philip Withnall
Browse files

telepathy: Fix notification of is-favourite changes

This ensures that the UI reflects errors in changing the is-favourite status
of a Tpf.Persona, rather than just blindly assuming they succeed.
parent 46ca881a
......@@ -338,12 +338,17 @@ public class Tpf.Persona : Folks.Persona,
is_favourite);
}
this._is_favourite = is_favourite;
this.notify_property ("is-favourite");
/* The change will be notified when we receive changes from the store. */
}
/* Note: Only ever called by Tpf.PersonaStore. */
internal void _set_is_favourite (bool is_favourite)
{
if (this._is_favourite == is_favourite)
{
return;
}
this._is_favourite = is_favourite;
this.notify_property ("is-favourite");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment