Commit 21e67f57 authored by Tijmen de Mes's avatar Tijmen de Mes

Added property to return BlinkMessage from Outgoing messge

parent 9f353cdd
......@@ -19,7 +19,7 @@ from blink.sessions import SessionManager, StreamDescription
from blink.util import run_in_gui_thread
__all__ = ['MessageManager']
__all__ = ['MessageManager', 'BlinkMessage']
class BlinkMessage(MSRPChatMessage):
......@@ -44,6 +44,10 @@ class OutgoingMessage(object):
self.timestamp = timestamp
self.sip_uri = None
@property
def message(self):
return BlinkMessage(self.content, self.content_type, self.account, timestamp=self.timestamp, id=self.id)
def _lookup(self):
settings = SIPSimpleSettings()
self.sip_uri = SIPURI.parse('sip:%s' % self.uri)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment