Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3de999d9 by Daniel Brötzmann at 2019-09-25T16:32:05Z
Fix show_unsubscribed_dialog
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
@@ -405,9 +405,8 @@ class Interface:
% obj.jid)
def show_unsubscribed_dialog(self, account, contact):
- def _remove(list_):
- self.roster.on_req_usub(None, list_)
- list_ = [(contact, account)]
+ def _remove():
+ self.roster.on_req_usub(None, [(contact, account)])
NewConfirmationDialog(
_('Subscription Removed'),
@@ -417,7 +416,7 @@ class Interface:
[DialogButton.make('Cancel',
text=_('_No')),
DialogButton.make('Remove',
- callback=_remove(list_))]).show()
+ callback=_remove)]).show()
# FIXME: Per RFC 3921, we can "deny" ack as well, but the GUI does
# not show deny
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3de999d93b9203304496f709b531eb3af0…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3de999d93b9203304496f709b531eb3af0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3647524a by Philipp Hörist at 2019-09-24T16:31:58Z
Presence: Dont show SubscriptionRequestWindow on auto approve
- - - - -
1 changed file:
- gajim/common/modules/presence.py
Changes:
=====================================
gajim/common/modules/presence.py
=====================================
@@ -250,6 +250,8 @@ class Presence(BaseModule):
if auto_auth or is_transport or jid in self.jids_for_auto_auth:
self.send_presence(fjid, 'subscribed')
+ self._log.info('Auto respond with subscribed: %s', jid)
+ return
status = (properties.status or
_('I would like to add you to my roster.'))
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3647524ad328cdd971d1c286d8dbb0b56d…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3647524ad328cdd971d1c286d8dbb0b56d…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9922ce1d by Philipp Hörist at 2019-09-23T15:16:23Z
Groupchat: Remove traces of continued conversations
- - - - -
ca328a67 by Philipp Hörist at 2019-09-23T15:20:19Z
Groupchat: Remove unused argument
- - - - -
19e862c2 by Philipp Hörist at 2019-09-23T18:17:46Z
Update pylint-ci.sh
- - - - -
4 changed files:
- gajim/common/events.py
- gajim/groupchat_control.py
- gajim/gtk/dialogs.py
- scripts/dev/pylint-ci.sh
Changes:
=====================================
gajim/common/events.py
=====================================
@@ -44,7 +44,7 @@ class Event:
printed_chat: [message, subject, control, msg_log_id]
printed_*: None
messages that are already printed in chat, but not read
- gc-invitation: [room_jid, reason, password, is_continued, jid_from]
+ gc-invitation: [room_jid, reason, password, jid_from]
subscription_request: [text, nick]
unsubscribed: contact
jingle-incoming: (fulljid, sessionid, content_types)
=====================================
gajim/groupchat_control.py
=====================================
@@ -87,11 +87,10 @@ class GroupchatControl(ChatControlBase):
# will be processed with this command host.
COMMAND_HOST = GroupChatCommands
- def __init__(self, parent_win, contact, muc_data, acct, is_continued=False):
+ def __init__(self, parent_win, contact, muc_data, acct):
ChatControlBase.__init__(self, self.TYPE_ID, parent_win,
- 'groupchat_control', contact, acct)
+ 'groupchat_control', contact, acct)
self.force_non_minimizable = False
- self.is_continued = is_continued
self.is_anonymous = True
# Keep error dialog instance to be sure to have only once at a time
@@ -760,12 +759,7 @@ class GroupchatControl(ChatControlBase):
and not self.attention_flag:
color = 'tab-muc-msg'
- if self.is_continued:
- # if this is a continued conversation
- label_str = self.get_continued_conversation_name()
- else:
- label_str = self.room_name
- label_str = GLib.markup_escape_text(label_str)
+ label_str = GLib.markup_escape_text(self.room_name)
# count waiting highlighted messages
unread = ''
@@ -829,23 +823,6 @@ class GroupchatControl(ChatControlBase):
self.xml.gc_banner_status_image.set_from_surface(surface)
- def get_continued_conversation_name(self):
- """
- Get the name of a continued conversation. Will return Continued
- Conversation if there isn't any other contact in the room
- """
- nicks = []
- for nick in app.contacts.get_nick_list(self.account,
- self.room_jid):
- if nick != self.nick:
- nicks.append(nick)
- if nicks != []:
- title = ', '
- title = _('Conversation with ') + title.join(nicks)
- else:
- title = _('Continued conversation')
- return title
-
def draw_banner_text(self):
"""
Draw the text in the fat line at the top of the window that houses the
@@ -1638,7 +1615,7 @@ class GroupchatControl(ChatControlBase):
return app.config.get_per('rooms', self.contact.jid,
'minimize_on_close', True)
- def minimize(self, status='offline'):
+ def minimize(self):
# Minimize it
win = app.interface.msg_win_mgr.get_window(self.contact.jid,
self.account)
=====================================
gajim/gtk/dialogs.py
=====================================
@@ -603,7 +603,6 @@ class InvitationReceivedDialog(Gtk.ApplicationWindow):
self.room_jid = str(event.muc)
self.from_ = str(event.from_)
self.password = event.password
- self.is_continued = event.continued
if event.from_.bareMatch(event.muc):
contact_text = event.from_.getResource()
@@ -615,15 +614,10 @@ class InvitationReceivedDialog(Gtk.ApplicationWindow):
else:
contact_text = contact.get_shown_name()
- # is_continued when invited from 1:1 chat
- if self.is_continued:
- invitation_label = _('<b>%s</b> has invited you to join '
- 'a discussion') % contact_text
- else:
- invitation_label = _('<b>%(contact)s</b> has invited you to the '
- 'group chat <b>%(room_jid)s</b>') % \
- {'contact': contact_text,
- 'room_jid': self.room_jid}
+ invitation_label = _('<b>%(contact)s</b> has invited you to the '
+ 'group chat <b>%(room_jid)s</b>') % \
+ {'contact': contact_text,
+ 'room_jid': self.room_jid}
self._ui.invitation_label.set_markup(invitation_label)
if event.reason:
=====================================
scripts/dev/pylint-ci.sh
=====================================
@@ -1,7 +1,7 @@
#!/bin/sh
PYLINT=${PYLINT:-pylint}
-"$PYLINT" --disable=C0103,C0302,C0301,C0330,E0401,E0611,E1101,E1133,E1136,R0201,R0901,R0904,R0912,R0913,R0914,R0915,R0916,R1702,R1710,W0201,W0212,W0221,W0223,W0231,W0233,W0603,W0613 "$@"
+"$PYLINT" --disable=C0103,C0302,C0301,C0330,E0401,E0611,E1101,R0201,R0901,R0904,R0912,R0913,R0914,R0915,R0916,R1702,R1710,W0201,W0212,W0221,W0223,W0231,W0233,W0603,W0613 "$@"
# C0103 invalid-name
# C0301 line-too-long
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/44e6b0f0048f176ea2ede69302903033f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/44e6b0f0048f176ea2ede69302903033f…
You're receiving this email because of your account on dev.gajim.org.