Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
efd79065 by lovetox at 2020-08-14T12:47:43+02:00
TCP: Catch Runtime error
Fixes #101
- - - - -
1 changed file:
- nbxmpp/tcp.py
Changes:
=====================================
nbxmpp/tcp.py
=====================================
@@ -286,6 +286,13 @@ class TCPConnection(Connection):
self._log.error('Write Error: %s', error)
return
+ except RuntimeError as error:
+ # PyGObject raises a RuntimeError when it failed to for some reason
+ # to convert the GError. Why it failed to convert is printed by
+ # PyGObject
+ self._log.error(error)
+ return
+
data = data.decode()
self._log_stanza(data, received=False)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/efd790652de1ae4bde35dfae…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/efd790652de1ae4bde35dfae…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4b740f57 by wurstsalat at 2020-08-14T09:35:44+02:00
ChatControl: Don’t fail when dropping text on control
- - - - -
1 changed file:
- gajim/chat_control.py
Changes:
=====================================
gajim/chat_control.py
=====================================
@@ -1180,7 +1180,10 @@ class ChatControl(ChatControlBase):
treeview = app.interface.roster.tree
model = treeview.get_model()
data = selection.get_data().decode()
- path = treeview.get_selection().get_selected_rows()[1][0]
+ tree_selection = treeview.get_selection()
+ if tree_selection.count_selected_rows() == 0:
+ return
+ path = tree_selection.get_selected_rows()[1][0]
iter_ = model.get_iter(path)
type_ = model[iter_][2]
if type_ != 'contact': # Source is not a contact
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/4b740f57b1b310ecab3e476d9d713bb8…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/4b740f57b1b310ecab3e476d9d713bb8…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
facb3faf by lovetox at 2020-08-12T18:29:39+02:00
Roster: Show own status message correctly on self contact
Rename the variable for less confusion
- - - - -
1 changed file:
- gajim/roster_window.py
Changes:
=====================================
gajim/roster_window.py
=====================================
@@ -2066,13 +2066,13 @@ class RosterWindow:
app.connections[account].change_status(status, txt)
self._status_selector.update()
- def chg_contact_status(self, contact, show, status, account):
+ def chg_contact_status(self, contact, show, status_message, account):
"""
When a contact changes their status
"""
contact_instances = app.contacts.get_contacts(account, contact.jid)
contact.show = show
- contact.status = status
+ contact.status = status_message
# name is to show in conversation window
name = contact.get_shown_name()
fjid = contact.get_full_jid()
@@ -2105,12 +2105,12 @@ class RosterWindow:
if ctrl and not ctrl.is_groupchat:
ctrl.contact = app.contacts.get_contact_with_highest_priority(
account, contact.jid)
- ctrl.update_status_display(name, uf_show, status)
+ ctrl.update_status_display(name, uf_show, status_message)
if contact.resource:
ctrl = app.interface.msg_win_mgr.get_control(fjid, account)
if ctrl:
- ctrl.update_status_display(name, uf_show, status)
+ ctrl.update_status_display(name, uf_show, status_message)
# Delete pep if needed
keep_pep = any(c.show not in ('error', 'offline') for c in
@@ -2134,8 +2134,8 @@ class RosterWindow:
self_contact = app.contacts.get_contact(account,
app.get_jid_from_account(account), resource=self_resource)
if self_contact:
- status = app.connections[account].status
- self.chg_contact_status(self_contact, show, status, account)
+ status_message = app.connections[account].status_message
+ self.chg_contact_status(self_contact, show, status_message, account)
self.set_account_status_icon(account)
if show == 'offline':
if self.quit_on_next_offline > -1:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/facb3faf4460da57ddbf65fdb8355465…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/facb3faf4460da57ddbf65fdb8355465…
You're receiving this email because of your account on dev.gajim.org.