Commit 9f353cdd authored by Tijmen de Mes's avatar Tijmen de Mes

Added notification for pending message

parent 764001bf
......@@ -102,6 +102,9 @@ class OutgoingMessage(object):
def send(self, session):
self.session = session
if self.content_type.lower() not in self.__ignored_content_types__:
notification_center = NotificationCenter()
notification_center.post_notification('BlinkMessageIsPending', sender=self.session, data=NotificationData(message=self.message, id=self.id))
if self.session.routes:
self._send()
else:
......
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