Commit 50d0b99c authored by Dan Pascu's avatar Dan Pascu

Fixed file transfer status if not answer is received

parent 9a5b3ef0
......@@ -3774,6 +3774,9 @@ class BlinkFileTransfer(object):
def _NH_SIPSessionDidStart(self, notification):
self.state = 'connected'
def _NH_MediaStreamDidInitialize(self, notification):
notification.center.post_notification('BlinkFileTransferDidInitialize', sender=self)
def _NH_MediaStreamDidNotInitialize(self, notification):
self._terminate(failure_reason=notification.data.reason)
......@@ -4085,6 +4088,12 @@ class FileTransferItem(object):
self.widget.update_content(self)
notification.center.post_notification('FileTransferItemDidChange', sender=self)
def _NH_BlinkFileTransferDidInitialize(self, notification):
self.progress = None
self.status = u'Connecting...'
self.widget.update_content(self)
notification.center.post_notification('FileTransferItemDidChange', sender=self)
def _NH_BlinkFileTransferHashProgress(self, notification):
progress = notification.data.progress
if self.progress is None or progress > self.progress:
......
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