summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-02 13:27:40 (GMT)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-02 13:27:40 (GMT)
commitf1e0ec174492bc990618c555b22e831757dfd4e4 (patch)
tree867838c4d067ad9277e0669d0386a132b61309c7
parent18b44dd2909b2cb75e8cc91a80f6e6b8ba253a7f (diff)
downloadtelepathy-butterfly-message-types-34918.tar.gz
telepathy-butterfly-message-types-34918.tar.xz
Implement Message.MessageTypesmessage-types-34918
-rw-r--r--butterfly/channel/text.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/butterfly/channel/text.py b/butterfly/channel/text.py
index 8a425f0..06e0417 100644
--- a/butterfly/channel/text.py
+++ b/butterfly/channel/text.py
@@ -65,13 +65,15 @@ class ButterflyTextChannel(
'SupportedContentTypes': lambda: ["text/plain"] ,
'MessagePartSupportFlags': lambda: 0,
'DeliveryReportingSupport': lambda: telepathy.DELIVERY_REPORTING_SUPPORT_FLAG_RECEIVE_FAILURES,
- 'PendingMessages': lambda: dbus.Array(self._pending_messages2.values(), signature='aa{sv}')
+ 'PendingMessages': lambda: dbus.Array(self._pending_messages2.values(), signature='aa{sv}'),
+ 'MessageTypes': lambda: message_type != telepathy.CHANNEL_TEXT_MESSAGE_TYPE_NORMAL
})
self._add_immutables({
'SupportedContentTypes': CHANNEL_INTERFACE_MESSAGES,
'MessagePartSupportFlags': CHANNEL_INTERFACE_MESSAGES,
'DeliveryReportingSupport': CHANNEL_INTERFACE_MESSAGES,
+ 'MessageTypes': CHANNEL_INTERFACE_MESSAGES,
})