Skip to content
Snippets Groups Projects
Commit bac2078b authored by Brendan Taylor's avatar Brendan Taylor
Browse files

set a session when sending a single message. fixes #3406

parent 03235e28
No related branches found
No related tags found
No related merge requests found
...@@ -1907,9 +1907,14 @@ class SingleMessageWindow: ...@@ -1907,9 +1907,14 @@ class SingleMessageWindow:
message) message)
return return
if self.session:
session = self.session
else:
session = gajim.connections[self.account].make_new_session(to_whom_jid)
# FIXME: allow GPG message some day # FIXME: allow GPG message some day
gajim.connections[self.account].send_message(to_whom_jid, message, gajim.connections[self.account].send_message(to_whom_jid, message,
keyID = None, type = 'normal', subject=subject, session = self.session) keyID = None, type = 'normal', subject=subject, session = session)
self.subject_entry.set_text('') # we sent ok, clear the subject self.subject_entry.set_text('') # we sent ok, clear the subject
self.message_tv_buffer.set_text('') # we sent ok, clear the textview self.message_tv_buffer.set_text('') # we sent ok, clear the textview
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment