[next] telepathy-glib: UPGRADING: fix change_members() helper function

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Fri Sep 20 04:19:16 PDT 2013


Module: telepathy-glib
Branch: next
Commit: 75d21d3074c381bc851f81ebbf0a764e5c80b6f2
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=75d21d3074c381bc851f81ebbf0a764e5c80b6f2

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Fri Sep 20 11:51:24 2013 +0200

UPGRADING: fix change_members() helper function

tp_group_mixin_change_members raises a warning if we pass a NULL 'message' in
details.

---

 UPGRADING |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/UPGRADING b/UPGRADING
index a004e96..b98674c 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -83,9 +83,11 @@ API/Behaviour changes
           details = tp_asv_new (
               "actor", G_TYPE_UINT, actor,
               "change-reason", G_TYPE_UINT, reason,
-              "message", G_TYPE_STRING, message,
               NULL);
 
+          if (message != NULL)
+            tp_asv_set_string (details, "message", message);
+
           tp_group_mixin_change_members (obj,
               add, del, add_local_pending, add_remote_pending, details);
 



More information about the telepathy-commits mailing list