[Papyon-bugs] [Bug 31430] New: unhandled content-types on first switchboard message

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 6 06:36:49 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31430

           Summary: unhandled content-types on first switchboard message
           Product: papyon
           Version: git master
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: papyon-bugs at lists.freedesktop.org
        ReportedBy: c10ud.dev at gmail.com


[14:14] <c10ud> lfrb, seems like papyon isn't parsing received msn_objects at
all on first switchboard message..quite strange, i'm now seeing if i can track
down where shit happens
[14:22] <c10ud> lfrb, the first switchboard message, if Content-Type:
'text/x-mms-animemoticon', is not handled at all by conversation's
_on_message_received
[14:33] <c10ud> ok, found: conversation.py at 430 you can safely not filter
text/x-mms-(anim)emoticon when switchboard_handler is None, just tried and it
worked good.
[14:33] <c10ud> *switchboard_client

--- a/papyon/conversation.py
+++ b/papyon/conversation.py
@@ -427,7 +427,7 @@ class SwitchboardConversation(AbstractConversation,
SwitchboardHandler):
     def _can_handle_message(message, switchboard_client=None):
         content_type = message.content_type[0]
         if switchboard_client is None:
-            return content_type in ('text/plain', 'text/x-msnmsgr-datacast')
+            return content_type in ('text/plain', 'text/x-msnmsgr-datacast',
'text/x-mms-emoticon', 'text/x-mms-animemoticon')
         # FIXME : we need to not filter those 'text/x-mms-emoticon',
'text/x-mms-animemoticon'
         return content_type in ('text/plain', 'text/x-msmsgscontrol',
                 'text/x-msnmsgr-datacast', 'text/x-mms-emoticon',


hope to have it in next bugfix rel :)

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


More information about the papyon-bugs mailing list