Yann Leboulanger pushed to branch gajim_0.16 at gajim / gajim
Commits:
81bf435b by Yann Leboulanger at 2017-11-22T15:58:42+01:00
Fix showing normal message event
- - - - -
1 changed file:
- src/session.py
Changes:
=====================================
src/session.py
=====================================
--- a/src/session.py
+++ b/src/session.py
@@ -260,7 +260,7 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
self.conn.name, contact, self)
obj.show_in_systray = notify.get_show_in_systray(event_type,
self.conn.name, contact)
- if obj.mtype == 'normal' and not obj.popup:
+ if obj.mtype == 'normal' and obj.popup:
do_event = False
else:
do_event = True
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/81bf435b09ee70790e8aa5d7871ee87604…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/81bf435b09ee70790e8aa5d7871ee87604…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7ec57e4d by Philipp Hörist at 2017-11-22T14:53:32+01:00
Lower debug level for malformed avatar stanzas
- - - - -
1 changed file:
- gajim/common/connection_handlers_events.py
Changes:
=====================================
gajim/common/connection_handlers_events.py
=====================================
--- a/gajim/common/connection_handlers_events.py
+++ b/gajim/common/connection_handlers_events.py
@@ -625,23 +625,23 @@ class PubsubAvatarReceivedEvent(nec.NetworkIncomingEvent):
item = self.items_node.getTag('item')
if not item:
log.warning('Received malformed avatar data via pubsub')
- log.warning(self.stanza)
+ log.debug(self.stanza)
return
self.sha = item.getAttr('id')
data_tag = item.getTag('data', namespace='urn:xmpp:avatar:data')
if self.sha is None or data_tag is None:
log.warning('Received malformed avatar data via pubsub')
- log.warning(self.stanza)
+ log.debug(self.stanza)
return
self.data = data_tag.getData()
if self.data is None:
log.warning('Received malformed avatar data via pubsub')
- log.warning(self.stanza)
+ log.debug(self.stanza)
return
try:
self.data = base64.b64decode(self.data.encode('utf-8'))
except binascii.Error as err:
- log.warning('Received malformed avatar data via pubsub: %s' % err)
+ log.debug('Received malformed avatar data via pubsub: %s' % err)
return
return True
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7ec57e4daba98c19655fea73fab81354bb…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7ec57e4daba98c19655fea73fab81354bb…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
84af966a by Yann Leboulanger at 2017-11-20T21:18:32+01:00
prevent traceback
- - - - -
1 changed file:
- gajim/roster_window.py
Changes:
=====================================
gajim/roster_window.py
=====================================
--- a/gajim/roster_window.py
+++ b/gajim/roster_window.py
@@ -1016,6 +1016,8 @@ class RosterWindow:
self.draw_contact(jid, account)
# Hide Group if all childs are hidden
contact = app.contacts.get_contact(account, jid)
+ if not contact:
+ return
for group in contact.get_shown_groups():
self.draw_group(group, account)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/84af966a87e4d56742af95bc7cf0c3fbcd…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/84af966a87e4d56742af95bc7cf0c3fbcd…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1c895e89 by Philipp Hörist at 2017-11-20T18:10:51+01:00
Persist resource across sessions
This was somehow lost once we implemented random resource strings
Although its good that initally a random resource is chosen, it
still should persist across sessions.
This helps to kill zombie client connections on the server because
most servers kill the old session once a new with the same resource
connects
Also dont notify the user about resource conflicts if no custom
resource is set. We should not expect users to know about resources
and what they are used for as long as possible.
- - - - -
2 changed files:
- gajim/common/connection.py
- gajim/gui_interface.py
Changes:
=====================================
gajim/common/connection.py
=====================================
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -191,6 +191,7 @@ class CommonConnection:
'hostname': socket.gethostname(),
'rand': rand
})
+ app.config.set_per('accounts', self.name, 'resource', resource)
return resource
def dispatch(self, event, data):
=====================================
gajim/gui_interface.py
=====================================
--- a/gajim/gui_interface.py
+++ b/gajim/gui_interface.py
@@ -1162,10 +1162,18 @@ class Interface:
account = obj.conn.name
conn = obj.conn
self.roster.send_status(account, 'offline', conn.status)
+
def on_ok(new_resource):
app.config.set_per('accounts', account, 'resource', new_resource)
self.roster.send_status(account, conn.old_show, conn.status)
+
proposed_resource = conn.server_resource
+ if proposed_resource.startswith('gajim.'):
+ # Dont notify the user about resource change if he didnt set
+ # a custom resource
+ on_ok('gajim.$rand')
+ return
+
proposed_resource += app.config.get('gc_proposed_nick_char')
dlg = dialogs.ResourceConflictDialog(_('Resource Conflict'),
_('You are already connected to this account with the same '
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1c895e89835c2ef4a53275cdd59e3b668a…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1c895e89835c2ef4a53275cdd59e3b668a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
24320c89 by Philipp Hörist at 2017-11-19T14:34:04+01:00
Remove unused code
- - - - -
2 changed files:
- gajim/chat_control_base.py
- gajim/groupchat_control.py
Changes:
=====================================
gajim/chat_control_base.py
=====================================
--- a/gajim/chat_control_base.py
+++ b/gajim/chat_control_base.py
@@ -313,8 +313,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
self.was_at_the_end = True
self.correcting = False
self.last_sent_msg = None
- self.last_received_txt = {} # one per name
- self.last_received_id = {} # one per name
# add MessageTextView to UI and connect signals
self.msg_textview = MessageTextView()
@@ -970,10 +968,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
if not count_as_new:
return
- if kind in ('incoming', 'incoming_queue', 'outgoing'):
- self.last_received_txt[name] = text
- if correct_id:
- self.last_received_id[name] = correct_id[0]
if kind == 'incoming':
if not self.type_id == message_control.TYPE_GC or \
app.config.get('notify_on_all_muc_messages') or \
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -1743,13 +1743,6 @@ class GroupchatControl(ChatControlBase):
tv.last_received_message_id[obj.new_nick] = \
tv.last_received_message_id[obj.nick]
del tv.last_received_message_id[obj.nick]
- if obj.nick in self.last_received_txt:
- self.last_received_txt[obj.new_nick] = \
- self.last_received_txt[obj.nick]
- del self.last_received_txt[obj.nick]
- self.last_received_id[obj.new_nick] = \
- self.last_received_id[obj.nick]
- del self.last_received_id[obj.nick]
# We add new nick to muc roster here, so we don't see
# that "new_nick has joined the room" when he just changed
# nick.
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/24320c894caf8ee05a8fb27d804fb503bc…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/24320c894caf8ee05a8fb27d804fb503bc…
You're receiving this email because of your account on dev.gajim.org.