Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c823ef6c by Daniel Brötzmann at 2019-05-15T21:23:46Z
Unify display of URLs in status messages
Status messages in group chats and private chats are now displayed
in the same way as status messages in single chat windows. This
avoids trailing brackets to be appended to a possible hyperlink inside
the status message. Fixes #8470
- - - - -
2 changed files:
- gajim/groupchat_control.py
- gajim/privatechat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
@@ -1854,7 +1854,7 @@ class GroupchatControl(ChatControlBase):
nick = event.properties.muc_nickname
status = event.properties.status
- status = '' if status is None else ' (%s)' % status
+ status = '' if status is None else ' - %s' % status
show = helpers.get_uf_show(event.properties.show.value)
status_default = app.config.get('print_status_muc_default')
=====================================
gajim/privatechat_control.py
=====================================
@@ -132,7 +132,7 @@ class PrivateChatControl(ChatControl):
nick = event.properties.muc_nickname
status = event.properties.status
- status = '' if status is None else ' (%s)' % status
+ status = '' if status is None else ' - %s' % status
show = helpers.get_uf_show(event.properties.show.value)
status_default = app.config.get('print_status_muc_default')
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c823ef6cebf77dfa52fa3737e46dde7da4…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c823ef6cebf77dfa52fa3737e46dde7da4…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ac4bde04 by Philipp Hörist at 2019-05-15T18:12:41Z
MAM: Always reset state on reconnect
It was not reset if the previous MAM query was interrupted because of a disconnect
- - - - -
2 changed files:
- gajim/common/connection.py
- gajim/common/modules/mam.py
Changes:
=====================================
gajim/common/connection.py
=====================================
@@ -1346,6 +1346,7 @@ class Connection(CommonConnection, ConnectionHandlers):
self._discover_server()
self._set_send_timeouts()
self.get_module('Chatstate').enabled = True
+ self.get_module('MAM').reset_state()
def _set_send_timeouts(self):
if app.config.get_per('accounts', self.name, 'keep_alives_enabled'):
=====================================
gajim/common/modules/mam.py
=====================================
@@ -68,6 +68,10 @@ class MAM(BaseModule):
account=self._account,
feature=self.archiving_namespace))
+ def reset_state(self):
+ self._mam_query_ids.clear()
+ self._catch_up_finished.clear()
+
def _from_valid_archive(self, _stanza, properties):
if properties.type.is_groupchat:
expected_archive = properties.jid
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ac4bde0447a5553d6a2515a8eac664806c…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ac4bde0447a5553d6a2515a8eac664806c…
You're receiving this email because of your account on dev.gajim.org.