Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
870d5e0d by wurstsalat at 2021-10-26T22:06:28+02:00
Notifications: Allow plugins to suppress notifications
- - - - -
1 changed file:
- gajim/gtk/notification.py
Changes:
=====================================
gajim/gtk/notification.py
=====================================
@@ -121,8 +121,13 @@ def _on_notification(self, event):
elif hasattr(event, 'sound'):
play_sound(event.sound, event.account)
- if not allow_showing_notification(event.account):
- return
+ if hasattr(event, 'show_notification'):
+ # Allow override here, used by Triggers plugin
+ if not event.show_notification:
+ return
+ else:
+ if not allow_showing_notification(event.account):
+ return
if hasattr(event, 'notif_detail'):
notif_detail = event.notif_detail
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/870d5e0d2f4da4e292e38379bc40fcc4…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/870d5e0d2f4da4e292e38379bc40fcc4…
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:
6f8890d7 by lovetox at 2021-10-25T23:54:24+02:00
Don’t use dataclasses.asdict()
asdict() recurses into other objects, we don’t want this here
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/structs.py
=====================================
@@ -197,7 +197,11 @@ class RosterItem:
groups=groups)
def asdict(self):
- return dataclasses.asdict(self)
+ return {'jid': self.jid,
+ 'name': self.name,
+ 'ask': self.ask,
+ 'subscription': self.subscription,
+ 'groups': self.groups}
class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms timestamp')):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/6f8890d74968119c12969dd8…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/6f8890d74968119c12969dd8…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
26544cfb by wurstsalat at 2021-10-24T23:39:53+02:00
AddContact: Always show Add button
- - - - -
1 changed file:
- gajim/gtk/add_contact.py
Changes:
=====================================
gajim/gtk/add_contact.py
=====================================
@@ -323,8 +323,6 @@ def __init__(self):
self.show_all()
def get_visible_buttons(self):
- if self._contact.is_in_roster:
- return ['back']
return ['back', 'add']
def get_default_button(self):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/26544cfb253a4213d817d233c8d26cb7…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/26544cfb253a4213d817d233c8d26cb7…
You're receiving this email because of your account on dev.gajim.org.