Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4f4624e0 by Philipp Hörist at 2020-02-03T21:13:12+01:00
Add dedicated connection state variable
- - - - -
46a00a6a by Philipp Hörist at 2020-02-03T21:51:15+01:00
Remove invisible feature
- This feature stems from the single device age
- Depends on deprecated Privacy Lists (XEP-0016)
- No support in other clients makes it in the current multiple device world useless
- Hard to maintain, prevents us to use even basic features like MUC because it would leak presence
- - - - -
30 changed files:
- gajim/chat_control_base.py
- gajim/command_system/implementation/standard.py
- gajim/common/app.py
- gajim/common/config.py
- gajim/common/connection.py
- gajim/common/const.py
- gajim/common/contacts.py
- gajim/common/dbus/logind.py
- gajim/common/helpers.py
- gajim/common/jingle_session.py
- gajim/common/modules/bookmarks.py
- gajim/common/modules/entity_time.py
- gajim/common/modules/muc.py
- gajim/common/modules/presence.py
- gajim/common/modules/privacylists.py
- gajim/common/modules/vcard_temp.py
- gajim/common/zeroconf/connection_handlers_zeroconf.py
- gajim/common/zeroconf/connection_zeroconf.py
- gajim/data/gui/preferences_window.ui
- gajim/data/gui/roster_window.ui
- − gajim/data/icons/hicolor/16x16/status/dcraven-invisible.png
- − gajim/data/icons/hicolor/16x16/status/gadu-invisible.png
- − gajim/data/icons/hicolor/16x16/status/gnome-invisible.png
- − gajim/data/icons/hicolor/16x16/status/goojim-invisible.png
- − gajim/data/icons/hicolor/16x16/status/gota-invisible.png
- − gajim/data/icons/hicolor/16x16/status/jabberbulb-invisible.png
- − gajim/data/icons/hicolor/16x16/status/sun-invisible.png
- − gajim/data/icons/hicolor/16x16/status/wroop-invisible.png
- − gajim/data/icons/hicolor/32x32/status/dcraven-invisible.png
- − gajim/data/icons/hicolor/32x32/status/gadu-invisible.png
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/adef78c5ee7fea63ea5973e63aeb45340…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/adef78c5ee7fea63ea5973e63aeb45340…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3512e2f9 by Philipp Hörist at 2020-02-02T16:58:29+01:00
Set encryption attribute on HTTPUpload and Groupchat messages
This fixes an regression from the send message refactor
- - - - -
2 changed files:
- gajim/common/modules/httpupload.py
- gajim/groupchat_control.py
Changes:
=====================================
gajim/common/modules/httpupload.py
=====================================
@@ -244,7 +244,8 @@ class HTTPUpload(BaseModule):
jid=transfer.contact.jid,
message=uri,
type_=type_,
- oob_url=uri)
+ oob_url=uri,
+ encryption=transfer.encryption)
self._con.send_message(message)
=====================================
gajim/groupchat_control.py
=====================================
@@ -1591,7 +1591,8 @@ class GroupchatControl(ChatControlBase):
type_='groupchat',
label=label,
chatstate=chatstate,
- correct_id=correct_id)
+ correct_id=correct_id,
+ encryption=self.encryption)
message_.additional_data.set_value('gajim', 'xhtml', xhtml)
con.send_message(message_)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3512e2f9c0ac9fe312695635fa64352f02…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3512e2f9c0ac9fe312695635fa64352f02…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
37f5d46a by Philipp Hörist at 2020-02-02T09:02:16+01:00
Smacks: Fix parsing error text on failed resume
- - - - -
1 changed file:
- nbxmpp/smacks.py
Changes:
=====================================
nbxmpp/smacks.py
=====================================
@@ -270,7 +270,7 @@ class Smacks(PlugIn):
stanza.getAttr('h'))
self._validate_ack(stanza, self._old_uqueue)
else:
- for tag in stanza.getTags():
+ for tag in stanza.getChildren():
if tag.getName() != 'text':
log.info(tag.getName())
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/37f5d46ac7529222f15be29781…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/37f5d46ac7529222f15be29781…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e0bc8c92 by Philipp Hörist at 2020-02-01T10:30:20+01:00
Logger: Preload DiscoInfo
There are times for example when we open the StartChat Dialog, where
we need potentially hundreads of DiscoInfo entrys instantly.
If we execute a database query for each one of them this becomes a
bottleneck
- - - - -
1 changed file:
- gajim/common/logger.py
Changes:
=====================================
gajim/common/logger.py
=====================================
@@ -234,6 +234,7 @@ class Logger:
self._migrate_databases()
self._connect_databases()
self._get_jid_ids_from_db()
+ self._fill_disco_info_cache()
def _create_databases(self):
if os.path.isdir(self._log_db_path):
@@ -1670,6 +1671,17 @@ class Logger:
log.info('Set message archive info: %s %s', jid, kwargs)
self._timeout_commit()
+ @timeit
+ def _fill_disco_info_cache(self):
+ sql = '''SELECT disco_info as "disco_info [disco_info]",
+ jid, last_seen FROM
+ last_seen_disco_info'''
+ rows = self._con.execute(sql).fetchall()
+ for row in rows:
+ disco_info = row.disco_info._replace(timestamp=row.last_seen)
+ self._disco_info_cache[row.jid] = disco_info
+ log.info('%s DiscoInfo entrys loaded', len(rows))
+
@timeit
def get_last_disco_info(self, jid, max_age=0):
"""
@@ -1681,28 +1693,11 @@ class Logger:
"""
- max_timestamp = time.time() - max_age if max_age else 0
-
- # Try the cache
disco_info = self._disco_info_cache.get(jid)
if disco_info is not None:
+ max_timestamp = time.time() - max_age if max_age else 0
if max_timestamp > disco_info.timestamp:
return None
- return disco_info
-
- # Try the database
- sql = '''SELECT disco_info as "disco_info [disco_info]", last_seen FROM
- last_seen_disco_info
- WHERE jid = ?'''
- row = self._con.execute(sql, (str(jid),)).fetchone()
- if row is None:
- return None
-
- if max_timestamp > row.last_seen:
- return None
-
- disco_info = row.disco_info._replace(timestamp=row.last_seen)
- self._disco_info_cache[jid] = disco_info
return disco_info
@timeit
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e0bc8c9284f441039aa7aa2b6a0849b88f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e0bc8c9284f441039aa7aa2b6a0849b88f…
You're receiving this email because of your account on dev.gajim.org.