Fixing up the last bug with the initator stuff
authorEd Page <eopage@byu.net>
Fri, 22 Jan 2010 04:46:26 +0000 (22:46 -0600)
committerEd Page <eopage@byu.net>
Fri, 22 Jan 2010 04:46:26 +0000 (22:46 -0600)
src/channel/call.py

index 1b89096..e923208 100644 (file)
@@ -34,8 +34,13 @@ class CallChannel(
                                props[telepathy.interfaces.CHANNEL_INTERFACE + '.InitiatorHandle'],
                        )
                else:
-                       _moduleLogger.warning('InitiatorID or InitiatorHandle not set on new channel')
-                       self._initiator = None
+                       # Maemo 5 seems to require InitiatorHandle/InitiatorID to be set
+                       # even though I can't find them in the dbus spec.  I think its
+                       # generally safe to assume that its locally initiated if not
+                       # specified.  Specially for The One Ring, its always locally
+                       # initiated
+                       _moduleLogger.warning('InitiatorID or InitiatorHandle not set on new channel, assuming locally initiated')
+                       self._initiator = connection.GetSelfHandle()
 
                tp.ChannelTypeStreamedMedia.__init__(self, connection, manager, props)
                tp.ChannelInterfaceCallState.__init__(self)