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
9039ac25
Commit
9039ac25
authored
Aug 12, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse sessions when starting messages from contacts
parent
40d52b1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
contacts.py
blink/contacts.py
+8
-7
No files found.
blink/contacts.py
View file @
9039ac25
...
...
@@ -46,6 +46,7 @@ from sipsimple.threading import run_in_thread
from
blink.configuration.datatypes
import
IconDescriptor
,
FileURL
from
blink.resources
import
ApplicationData
,
Resources
,
IconManager
from
blink.sessions
import
SessionManager
,
StreamDescription
from
blink.messages
import
MessageManager
from
blink.util
import
call_in_gui_thread
,
run_in_gui_thread
from
blink.widgets.buttons
import
SwitchViewButton
from
blink.widgets.color
import
ColorHelperMixin
...
...
@@ -3522,8 +3523,8 @@ class ContactListView(QListView):
def
_AH_SendSMS
(
self
,
uri
=
None
):
contact
=
self
.
selectionModel
()
.
selectedIndexes
()[
0
]
.
data
(
Qt
.
UserRole
)
session_manager
=
Session
Manager
()
session_manager
.
create_
session
(
contact
,
uri
or
contact
.
uri
,
[
StreamDescription
(
'messages'
)],
connect
=
False
)
session_manager
=
Message
Manager
()
session_manager
.
create_
message_session
(
uri
or
contact
.
uri
.
uri
)
def
_AH_SendFiles
(
self
,
uri
=
None
):
session_manager
=
SessionManager
()
...
...
@@ -3914,8 +3915,8 @@ class ContactSearchListView(QListView):
def
_AH_SendSMS
(
self
,
uri
=
None
):
contact
=
self
.
selectionModel
()
.
selectedIndexes
()[
0
]
.
data
(
Qt
.
UserRole
)
session_manager
=
Session
Manager
()
session_manager
.
create_
session
(
contact
,
uri
or
contact
.
uri
,
[
StreamDescription
(
'messages'
)],
connect
=
False
)
session_manager
=
Message
Manager
()
session_manager
.
create_
message_session
(
uri
or
contact
.
uri
.
uri
)
def
_AH_SendFiles
(
self
,
uri
=
None
):
session_manager
=
SessionManager
()
...
...
@@ -4223,9 +4224,9 @@ class ContactDetailView(QListView):
if
isinstance
(
item
,
ContactURI
):
selected_uri
=
item
.
uri
else
:
selected_uri
=
uri
or
contact
.
uri
session_manager
=
Session
Manager
()
session_manager
.
create_
session
(
contact
,
selected_uri
,
[
StreamDescription
(
'messages'
)],
connect
=
False
)
selected_uri
=
uri
or
contact
.
uri
.
uri
session_manager
=
Message
Manager
()
session_manager
.
create_
message_session
(
selected_uri
)
def
_AH_SendFiles
(
self
,
uri
=
None
):
session_manager
=
SessionManager
()
...
...
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