changeset 9117874b200f in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=9117874b200f
description: do not traceback when we receive a corboned message sent without a to attribute. Fixes #8194
diffstat:
src/common/connection_handlers_events.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 9649c5ef5ec2 -r 9117874b200f src/common/connection_handlers_events.py
--- a/src/common/connection_handlers_events.py Tue Nov 24 20:16:00 2015 +0100
+++ b/src/common/connection_handlers_events.py Tue Nov 24 21:07:59 2015 +0100
@@ -1147,6 +1147,8 @@
if not frm:
frm = gajim.get_jid_from_account(account)
self.stanza.setTo(frm)
+ if not to:
+ to = gajim.get_jid_from_account(account)
self.stanza.setFrom(to)
self.sent = True
try:
changeset ad1009135fb6 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=ad1009135fb6
description: set the focus on message textview in chat control only for the first opened tab. Fixes #7903
diffstat:
src/message_window.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 2a3a87de386a -r ad1009135fb6 src/message_window.py
--- a/src/message_window.py Sun Nov 22 20:10:33 2015 +0100
+++ b/src/message_window.py Mon Nov 23 22:05:19 2015 +0100
@@ -311,7 +311,8 @@
# NOTE: we do not call set_control_active(True) since we don't know
# whether the tab is the active one.
self.show_title()
- gobject.timeout_add(500, control.msg_textview.grab_focus)
+ if self.get_num_controls() == 1:
+ gobject.timeout_add(500, control.msg_textview.grab_focus)
def on_tab_eventbox_button_press_event(self, widget, event, child):
if event.button == 3: # right click
changeset 41a51066b56f in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=41a51066b56f
description: do not loop requesting vcard when opening a chat window with ourself and we don't have a vcard stored on server
diffstat:
src/common/connection_handlers.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 939ae47ed473 -r 41a51066b56f src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Sat Nov 21 14:39:36 2015 +0100
+++ b/src/common/connection_handlers.py Sun Nov 22 15:14:07 2015 +0100
@@ -511,7 +511,7 @@
if id_ in self.groupchat_jids:
frm = self.groupchat_jids[id_]
del self.groupchat_jids[id_]
- if frm and frm != our_jid:
+ if frm:
# Write an empty file
self._save_vcard_to_hd(frm, '')
jid, resource = gajim.get_room_and_nick_from_fjid(frm)