[Bug 24474] [fixed 5.2, pending 5.3] Observers not invoked for channels requested "behind MC's back"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 2 15:46:51 CET 2009


http://bugs.freedesktop.org/show_bug.cgi?id=24474





--- Comment #4 from Simon McVittie <simon.mcvittie at collabora.co.uk>  2009-11-02 06:46:51 PST ---
Is this better?

     /* possible-handlers is only allowed to be NULL if we're only observing */
     g_return_val_if_fail (possible_handlers != NULL || observe_only, NULL);
-    /* channels that we will only observe should not need approval - so at
-     * least one must be false */
-    g_return_val_if_fail (!(observe_only && needs_approval), NULL);
+
+    /* If we're only observing, then the channels were requested "behind MC's
+     * back", so they can't need approval (i.e. observe_only implies
+     * !needs_approval) */
+    g_return_val_if_fail (!observe_only || !needs_approval, NULL);


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list