panoramisk icon indicating copy to clipboard operation
panoramisk copied to clipboard

Message class initializer shadows header Content as received by ReceivedSMS event

Open LukasMojzis opened this issue 6 months ago • 0 comments

The contents of SMS is ''. I have resolved this by monkey patching the Message.init

from panoramisk import Message

def patched_init(self, headers, content=''):
    super(Message, self).__init__(content=content, **headers)
    self.manager = None

Message.__init__ = patched_init

Don't know what else it impacts but I can submit a pull request if it doesn't break Message.

LukasMojzis avatar Aug 03 '24 13:08 LukasMojzis