Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
76142043 by lovetox at 2020-09-26T22:11:36+02:00
EntityCaps: Add more logging output on invalid presence
- - - - -
9c9cc108 by lovetox at 2020-09-29T19:45:25+02:00
Use integer log levels
- - - - -
2 changed files:
- nbxmpp/errors.py
- nbxmpp/modules/entity_caps.py
Changes:
=====================================
nbxmpp/errors.py
=====================================
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
+import logging
+
from nbxmpp.namespaces import Namespace
@@ -29,7 +31,7 @@ class BaseError(Exception):
class StanzaError(BaseError):
- log_level = 'info'
+ log_level = logging.INFO
app_namespace = None
def __init__(self, stanza):
@@ -98,7 +100,7 @@ class PubSubStanzaError(StanzaError):
class MalformedStanzaError(BaseError):
- log_level = 'warning'
+ log_level = logging.WARNING
def __init__(self, text, stanza, is_fatal=True):
BaseError.__init__(self, is_fatal=is_fatal)
@@ -108,7 +110,7 @@ class MalformedStanzaError(BaseError):
class CancelledError(BaseError):
- log_level = 'info'
+ log_level = logging.INFO
def __init__(self):
BaseError.__init__(self, is_fatal=True)
=====================================
nbxmpp/modules/entity_caps.py
=====================================
@@ -82,16 +82,19 @@ class EntityCaps(BaseModule):
if hash_algo != 'sha-1':
self._log.warning('Unsupported hashing algorithm used: %s',
hash_algo)
+ self._log.warning(stanza)
return
node = caps.getAttr('node')
if not node:
self._log.warning('node attribute missing')
+ self._log.warning(stanza)
return
ver = caps.getAttr('ver')
if not ver:
self._log.warning('ver attribute missing')
+ self._log.warning(stanza)
return
properties.entity_caps = EntityCapsData(
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/854caebc7a441854f79be39…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/854caebc7a441854f79be39…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ce7f7088 by André Apitzsch at 2020-09-28T21:33:28+02:00
ChatControl: Fix invalid type error
- - - - -
1 changed file:
- gajim/chat_control.py
Changes:
=====================================
gajim/chat_control.py
=====================================
@@ -813,12 +813,12 @@ class ChatControl(ChatControlBase):
def on_mic_hscale_value_changed(self, _widget, value):
self._get_audio_content().set_mic_volume(value / 100)
# Save volume to config
- app.settings.set('audio_input_volume', value)
+ app.settings.set('audio_input_volume', int(value))
def on_sound_hscale_value_changed(self, _widget, value):
self._get_audio_content().set_out_volume(value / 100)
# Save volume to config
- app.settings.set('audio_output_volume', value)
+ app.settings.set('audio_output_volume', int(value))
def on_location_eventbox_button_release_event(self, _widget, _event):
if 'geoloc' in self.contact.pep:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ce7f7088db801fb17095625801cb745d…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ce7f7088db801fb17095625801cb745d…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
8110474f by Daniel Brötzmann at 2020-09-28T19:58:21+02:00
GroupChatInvitation: Fix invitation label
- - - - -
1 changed file:
- gajim/gtk/groupchat_invitation.py
Changes:
=====================================
gajim/gtk/groupchat_invitation.py
=====================================
@@ -54,7 +54,7 @@ class GroupChatInvitation(Gtk.ApplicationWindow):
contact_label.set_justify(Gtk.Justification.CENTER)
contact_label.set_line_wrap(True)
invitation_label = Gtk.Label(
- label=_('Has invited you to a group chat.\nDo you want to join?'))
+ label=_('has invited you to a group chat.\nDo you want to join?'))
invitation_label.set_halign(Gtk.Align.CENTER)
invitation_label.set_justify(Gtk.Justification.CENTER)
invitation_label.set_max_width_chars(50)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8110474f8b0ee239368afe6fafe502c0…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8110474f8b0ee239368afe6fafe502c0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
42b0d572 by lovetox at 2020-09-27T18:38:29+02:00
Preferences: Add setting for showing the send button
- - - - -
1 changed file:
- gajim/gtk/preferences.py
Changes:
=====================================
gajim/gtk/preferences.py
=====================================
@@ -339,6 +339,11 @@ class Chats(PreferenceBox):
desc=_('Render XHTML styles (colors, etc.) of incoming '
'messages')),
+ Setting(SettingKind.SWITCH,
+ _('Show Send Message Button'),
+ SettingType.CONFIG,
+ 'show_send_message_button'),
+
Setting(SettingKind.SWITCH,
_('Show Status Message'),
SettingType.CONFIG,
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/42b0d572fffa3f697746f69a84bc9eef…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/42b0d572fffa3f697746f69a84bc9eef…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5ca5eb88 by Daniel Brötzmann at 2020-09-26T11:22:10+02:00
ConversationTextview: Use encrypted-color
- - - - -
1 changed file:
- gajim/conversation_textview.py
Changes:
=====================================
gajim/conversation_textview.py
=====================================
@@ -68,7 +68,7 @@ TRUST_SYMBOL_DATA = {
'warning-color'),
Trust.BLIND: ('security-medium-symbolic',
_('Unverified'),
- 'success-color'),
+ 'encrypted-color'),
Trust.VERIFIED: ('security-high-symbolic',
_('Verified'),
'encrypted-color')
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5ca5eb8858b0cf45d90709cb199bd47a…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5ca5eb8858b0cf45d90709cb199bd47a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
df22a60c by wurstsalat at 2020-09-26T10:41:20+02:00
Events: Don’t fire signal before removing remaining events
- - - - -
61de0674 by wurstsalat at 2020-09-26T10:41:20+02:00
SubscriptionRequest: Remove remaining events on block/report
- - - - -
08ea859a by wurstsalat at 2020-09-26T10:41:20+02:00
Roster: Remove remaining events on block/report
- - - - -
3 changed files:
- gajim/common/events.py
- gajim/gtk/subscription_request.py
- gajim/roster_window.py
Changes:
=====================================
gajim/common/events.py
=====================================
@@ -280,9 +280,10 @@ class Events:
del self._events[account][jid]
self.fire_event_removed(removed_list)
return
- # no event nor type given, remove them all
- self.fire_event_removed(self._events[account][jid])
+ # No event nor type given, remove them all
+ removed_list = self._events[account][jid]
del self._events[account][jid]
+ self.fire_event_removed(removed_list)
def change_jid(self, account, old_jid, new_jid):
if account not in self._events:
=====================================
gajim/gtk/subscription_request.py
=====================================
@@ -104,12 +104,14 @@ class SubscriptionRequest(Gtk.ApplicationWindow):
self._remove_contact()
def _on_block_clicked(self, _widget):
+ app.events.remove_events(self.account, self.jid)
self._deny_request()
con = app.connections[self.account]
con.get_module('Blocking').block([self.jid])
self._remove_contact()
def _on_report_clicked(self, _widget):
+ app.events.remove_events(self.account, self.jid)
self._deny_request()
con = app.connections[self.account]
con.get_module('Blocking').block([self.jid], report='spam')
=====================================
gajim/roster_window.py
=====================================
@@ -2638,6 +2638,7 @@ class RosterWindow:
jid_list = [contact.jid for contact in l_]
con.get_module('Blocking').block(jid_list, report)
for contact in l_:
+ app.events.remove_events(acct, contact.jid)
ctrl = app.interface.msg_win_mgr.get_control(
contact.jid, acct)
if ctrl:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/c8d19f60b5aa149291768b37c4cf0e6…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/c8d19f60b5aa149291768b37c4cf0e6…
You're receiving this email because of your account on dev.gajim.org.