Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
cb193237
Commit
cb193237
authored
Sep 22, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing functions to add message stream in audio/video session
parent
a8946797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sessions.py
blink/sessions.py
+4
-0
No files found.
blink/sessions.py
View file @
cb193237
...
@@ -793,6 +793,8 @@ class BlinkSession(BlinkSessionBase):
...
@@ -793,6 +793,8 @@ class BlinkSession(BlinkSessionBase):
self
.
lookup
.
lookup_sip_proxy
(
uri
,
settings
.
sip
.
transport_list
,
tls_name
=
self
.
account
.
sip
.
tls_name
or
uri
.
host
)
self
.
lookup
.
lookup_sip_proxy
(
uri
,
settings
.
sip
.
transport_list
,
tls_name
=
self
.
account
.
sip
.
tls_name
or
uri
.
host
)
def
add_stream
(
self
,
stream_description
):
def
add_stream
(
self
,
stream_description
):
if
stream_description
.
type
==
'messages'
and
stream_description
.
type
not
in
self
.
fake_streams
:
self
.
fake_streams
.
extend
([
stream_description
.
create_stream
()])
self
.
add_streams
([
stream_description
])
self
.
add_streams
([
stream_description
])
def
add_streams
(
self
,
stream_descriptions
):
def
add_streams
(
self
,
stream_descriptions
):
...
@@ -3296,6 +3298,8 @@ class ChatSessionItem(object):
...
@@ -3296,6 +3298,8 @@ class ChatSessionItem(object):
notification
.
center
.
post_notification
(
'ChatSessionItemDidChange'
,
sender
=
self
)
notification
.
center
.
post_notification
(
'ChatSessionItemDidChange'
,
sender
=
self
)
def
_NH_BlinkSessionDidNotAddStream
(
self
,
notification
):
def
_NH_BlinkSessionDidNotAddStream
(
self
,
notification
):
if
notification
.
data
.
stream
.
type
==
'messages'
:
return
icon_label
=
getattr
(
self
.
widget
,
"
%
s_icon"
%
notification
.
data
.
stream
.
type
.
replace
(
'-'
,
'_'
))
icon_label
=
getattr
(
self
.
widget
,
"
%
s_icon"
%
notification
.
data
.
stream
.
type
.
replace
(
'-'
,
'_'
))
icon_label
.
setEnabled
(
True
)
icon_label
.
setEnabled
(
True
)
self
.
widget
.
update_content
(
self
)
self
.
widget
.
update_content
(
self
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment