Philipp Hörist pushed to branch master at gajim / gajim
Commits:
36b31259 by Bronko at 2018-04-08T20:58:24+02:00
save encoded avatar when receiving vCard from server
- - - - -
fcad0f08 by Bronko at 2018-04-08T23:45:32+02:00
save hash and mime_type of avatar when receiving vCard from server
in case the avatar is not changed by the user we must resend the still valid hash.
if we do not save the hash here, gajim advertises an empty photo element after publishing the vCard,
which removes the avatar for all receiving clients of the photo element update
- - - - -
1 changed file:
- gajim/profile_window.py
Changes:
=====================================
gajim/profile_window.py
=====================================
--- a/gajim/profile_window.py
+++ b/gajim/profile_window.py
@@ -29,6 +29,7 @@ from gi.repository import GdkPixbuf
import base64
import time
import logging
+import hashlib
from gajim import gtkgui_helpers
from gajim import dialogs
@@ -227,7 +228,11 @@ class ProfileWindow:
photo_encoded = vcard_[i]['BINVAL']
if photo_encoded == '':
continue
+ self.avatar_encoded = photo_encoded
photo_decoded = base64.b64decode(photo_encoded.encode('utf-8'))
+ self.avatar_sha = hashlib.sha1(photo_decoded).hexdigest()
+ if 'TYPE' in vcard_[i]:
+ self.avatar_mime_type = vcard_[i]['TYPE']
pixbuf = gtkgui_helpers.get_pixbuf_from_data(photo_decoded)
if pixbuf is None:
continue
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/879e03449cb362d16eeeefc16a9537f5c…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/879e03449cb362d16eeeefc16a9537f5c…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
27e45856 by Yann Leboulanger at 2018-04-07T22:04:32+02:00
prevent traceback. Fixes #9054
- - - - -
1 changed file:
- gajim/common/socks5.py
Changes:
=====================================
gajim/common/socks5.py
=====================================
--- a/gajim/common/socks5.py
+++ b/gajim/common/socks5.py
@@ -319,7 +319,7 @@ class SocksQueue:
self.process_result(result, sender)
def send_file(self, file_props, account, mode):
- for key in self.senders.keys():
+ for key in list(self.senders.keys()):
if file_props.name in key and file_props.transport_sid in key \
and self.senders[key].mode == mode:
log.info('socks5: sending file')
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/27e45856b030f29e0ccf7c55e9923d4cc9…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/27e45856b030f29e0ccf7c55e9923d4cc9…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
93b50bf1 by Yann Leboulanger at 2018-04-07T22:01:39+02:00
prevent a traceback with wrong bookmarks. Fixes #9055
- - - - -
1 changed file:
- gajim/config.py
Changes:
=====================================
gajim/config.py
=====================================
--- a/gajim/config.py
+++ b/gajim/config.py
@@ -2119,7 +2119,12 @@ class ManageBookmarksWindow:
# Fill in the data for childs
self.title_entry.set_text(model[iter_][1])
room_jid = model[iter_][2]
- (room, server) = room_jid.split('@')
+ room_jid_s = room_jid.split('@')
+ if len(room_jid_s) == 1:
+ room = ''
+ server = room_jid
+ else:
+ (room, server) = room_jid_s
self.room_entry.handler_block(self.room_entry_changed_id)
self.room_entry.set_text(room)
self.room_entry.handler_unblock(self.room_entry_changed_id)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/93b50bf1f66359c7b32ca046ed5d769d9f…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/93b50bf1f66359c7b32ca046ed5d769d9f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
cf911b39 by Philipp Hörist at 2018-04-05T22:14:57+02:00
Fix regression from 4caa4971
- - - - -
1 changed file:
- gajim/roster_window.py
Changes:
=====================================
gajim/roster_window.py
=====================================
--- a/gajim/roster_window.py
+++ b/gajim/roster_window.py
@@ -2695,6 +2695,8 @@ class RosterWindow:
self.draw_account(obj.conn.name)
def _nec_decrypted_message_received(self, obj):
+ if not obj.msgtxt:
+ return True
if obj.mtype not in ('normal', 'chat'):
return
if obj.mtype == 'normal' and obj.popup:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/cf911b3984ad3227c09a5a007f491c5447…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/cf911b3984ad3227c09a5a007f491c5447…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
898ac966 by Philipp Hörist at 2018-04-04T22:16:46+02:00
Some status codes should only be in our presence
Some Servers broadcast these status codes in every presence which
is wrong accoring to the XEP
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -1749,7 +1749,7 @@ class GroupchatControl(ChatControlBase):
# status_code
# http://www.xmpp.org/extensions/xep-0045.html#registrar-statuscodes-\
# init
- if obj.status_code:
+ if obj.status_code and obj.nick == self.nick:
if '110' in obj.status_code:
# We just join the room
if self.room_jid in app.automatic_rooms[self.account] and \
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/898ac9664796ef8fe16b1caeefa261cdc7…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/898ac9664796ef8fe16b1caeefa261cdc7…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1b8d76bf by Philipp Hörist at 2018-04-04T22:10:34+02:00
Add missing return statement
- - - - -
1 changed file:
- gajim/common/multimedia_helpers.py
Changes:
=====================================
gajim/common/multimedia_helpers.py
=====================================
--- a/gajim/common/multimedia_helpers.py
+++ b/gajim/common/multimedia_helpers.py
@@ -38,6 +38,7 @@ class DeviceManager(object):
element = Gst.ElementFactory.make(name, '%spresencetest' % name)
if element is None:
log.warning('could not create %spresencetest', name)
+ return
if hasattr(element.props, 'device'):
element.set_state(Gst.State.READY)
devices = element.get_properties('device')
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1b8d76bf9e2584adb89d6ad213ef942e34…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1b8d76bf9e2584adb89d6ad213ef942e34…
You're receiving this email because of your account on dev.gajim.org.