From f1e0ec174492bc990618c555b22e831757dfd4e4 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 2 Mar 2011 14:27:40 +0100 Subject: [PATCH] Implement Message.MessageTypes --- butterfly/channel/text.py | 4 +++- 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, }) -- 1.7.1