changeset cf7c4fbed6bf in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=cf7c4fbed6bf
description: show only rooms where user can be invited to in invite to submenu. Fixes #7212
diffstat:
src/gui_menu_builder.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r f1e83cb3e0b9 -r cf7c4fbed6bf src/gui_menu_builder.py
--- a/src/gui_menu_builder.py Mon Aug 27 13:28:47 2012 +0200
+++ b/src/gui_menu_builder.py Mon Aug 27 22:07:29 2012 +0200
@@ -125,6 +125,8 @@
for gc_control in gajim.interface.msg_win_mgr.get_controls(
message_control.TYPE_GC) + minimized_controls:
acct = gc_control.account
+ if acct not in connected_accounts:
+ continue
room_jid = gc_control.room_jid
if room_jid in ignore_rooms:
continue
changeset ae4abdb4a507 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=ae4abdb4a507
description: don't close send single message if there was an error sending the message. Fixes #7187
diffstat:
src/dialogs.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 627cbbe46bd0 -r ae4abdb4a507 src/dialogs.py
--- a/src/dialogs.py Sat Aug 25 23:54:39 2012 -0400
+++ b/src/dialogs.py Sun Aug 26 22:34:29 2012 +0200
@@ -3112,7 +3112,7 @@
# if offline or connecting
ErrorDialog(_('Connection not available'),
_('Please make sure you are connected with "%s".') % self.account)
- return
+ return True
if isinstance(self.to, list):
sender_list = []
for i in self.to:
@@ -3132,7 +3132,7 @@
ErrorDialog(_('Invalid Jabber ID'),
_('It is not possible to send a message to %s, this JID is not '
'valid.') % to_whom_jid)
- return
+ return True
subject = self.subject_entry.get_text().decode('utf-8')
begin, end = self.message_tv_buffer.get_bounds()
@@ -3176,7 +3176,8 @@
session=self.session)
def on_send_and_close_button_clicked(self, widget):
- self.send_single_message()
+ if self.send_single_message():
+ return
self.save_pos()
self.window.destroy()
changeset 627cbbe46bd0 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=627cbbe46bd0
description: only send hash if contact supports it
diffstat:
src/common/jingle.py | 5 -----
src/common/jingle_ft.py | 2 +-
2 files changed, 1 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r b0c4c51e1870 -r 627cbbe46bd0 src/common/jingle.py
--- a/src/common/jingle.py Sat Aug 25 12:09:50 2012 -0400
+++ b/src/common/jingle.py Sat Aug 25 23:54:39 2012 -0400
@@ -80,12 +80,10 @@
# get data
jid = helpers.get_full_jid_from_iq(stanza)
id_ = stanza.getID()
-
if (jid, id_) in self.__iq_responses.keys():
self.__iq_responses[(jid, id_)].on_stanza(stanza)
del self.__iq_responses[(jid, id_)]
raise xmpp.NodeProcessed
-
jingle = stanza.getTag('jingle')
# a jingle element is not necessary in iq-result stanza
# don't check for that
@@ -97,14 +95,12 @@
if id_ in sesn.iq_ids:
sesn.on_stanza(stanza)
return
-
# do we need to create a new jingle object
if sid not in self._sessions:
#TODO: tie-breaking and other things...
newjingle = JingleSession(con=self, weinitiate=False, jid=jid,
iq_id=id_, sid=sid)
self._sessions[sid] = newjingle
-
# we already have such session in dispatcher...
self._sessions[sid].collect_iq_id(id_)
self._sessions[sid].on_stanza(stanza)
@@ -112,7 +108,6 @@
if sid in self._sessions and \
self._sessions[sid].state == JingleStates.ended:
self.delete_jingle_session(sid)
-
raise xmpp.NodeProcessed
def start_audio(self, jid):
diff -r b0c4c51e1870 -r 627cbbe46bd0 src/common/jingle_ft.py
--- a/src/common/jingle_ft.py Sat Aug 25 12:09:50 2012 -0400
+++ b/src/common/jingle_ft.py Sat Aug 25 23:54:39 2012 -0400
@@ -166,7 +166,7 @@
self.file_props.streamhosts = self.transport.remote_candidates
# Calculate file hash in a new thread
# if we haven't sent the hash already.
- if self.file_props.hash_ is None:
+ if self.file_props.hash_ is None and self.file_props.algo:
self.hashThread = threading.Thread(target=self.__send_hash)
self.hashThread.start()
for host in self.file_props.streamhosts:
changeset 2bf24a2cc140 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=2bf24a2cc140
description: calculate hash after we get session accept
diffstat:
src/common/jingle_ft.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 631684dec21b -r 2bf24a2cc140 src/common/jingle_ft.py
--- a/src/common/jingle_ft.py Sat Aug 25 12:25:30 2012 +0200
+++ b/src/common/jingle_ft.py Sat Aug 25 11:14:38 2012 -0400
@@ -119,11 +119,7 @@
self._listen_host()
def __on_session_initiate_sent(self, stanza, content, error, action):
- # Calculate file hash in a new thread
- # if we haven't sent the hash already.
- if self.file_props.hash_ is None:
- self.hashThread = threading.Thread(target=self.__send_hash)
- self.hashThread.start()
+ pass
def __send_hash(self):
# Send hash in a session info
@@ -167,6 +163,11 @@
self.__state_changed(STATE_TRANSFERING)
raise xmpp.NodeProcessed
self.file_props.streamhosts = self.transport.remote_candidates
+ # Calculate file hash in a new thread
+ # if we haven't sent the hash already.
+ if self.file_props.hash_ is None:
+ self.hashThread = threading.Thread(target=self.__send_hash)
+ self.hashThread.start()
for host in self.file_props.streamhosts:
host['initiator'] = self.session.initiator
host['target'] = self.session.responder