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.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
589c0417 by Philipp Hörist at 2019-09-22T15:42:57Z
MUC: Recognize server shutdown as room kick
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/structs.py
=====================================
@@ -659,6 +659,7 @@ class PresenceProperties:
StatusCode.REMOVED_KICKED,
StatusCode.REMOVED_AFFILIATION_CHANGE,
StatusCode.REMOVED_NONMEMBER_IN_MEMBERS_ONLY,
+ StatusCode.REMOVED_SERVICE_SHUTDOWN,
StatusCode.REMOVED_ERROR
}
return (self.from_muc and
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/589c0417455010c0ba1a41aae2…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/589c0417455010c0ba1a41aae2…
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:
67a5562d by Philipp Hörist at 2019-09-22T09:21:58Z
AdHoc: Dont report empty command list as stanza-malformed
- - - - -
1 changed file:
- nbxmpp/modules/adhoc.py
Changes:
=====================================
nbxmpp/modules/adhoc.py
=====================================
@@ -54,7 +54,7 @@ class AdHoc:
return raise_error(log.info, stanza)
payload = stanza.getQueryPayload()
- if not payload:
+ if payload is None:
return raise_error(log.warning, stanza, 'stanza-malformed')
command_list = []
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/67a5562db9d3d335aa21eab56d…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/67a5562db9d3d335aa21eab56d…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
dcbd5f9c by Philipp Hörist at 2019-09-22T08:31:49Z
Remove unused import
- - - - -
1 changed file:
- gajim/common/helpers.py
Changes:
=====================================
gajim/common/helpers.py
=====================================
@@ -59,7 +59,6 @@ import nbxmpp
from nbxmpp.util import compute_caps_hash
from nbxmpp.stringprepare import nameprep
from nbxmpp.structs import DiscoInfo
-from nbxmpp.const import Affiliation
from nbxmpp.const import Role
from nbxmpp.protocol import JID
from nbxmpp.protocol import InvalidJid
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/dcbd5f9c4d99ef5c85cd4be9e47ac87806…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/dcbd5f9c4d99ef5c85cd4be9e47ac87806…
You're receiving this email because of your account on dev.gajim.org.