Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5bf5a18f by lovetox at 2022-01-11T00:39:26+01:00
CI: Freeze pylint version
- - - - -
1 changed file:
- docker/requirements.txt
Changes:
=====================================
docker/requirements.txt
=====================================
@@ -1,7 +1,7 @@
PyGObject
pycairo>=1.20
mypy
-pylint
+pylint==2.12.2
codespell
coverage
css-parser
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5bf5a18f80130a1c12b12c75b0dabb4a…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5bf5a18f80130a1c12b12c75b0dabb4a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ca8036e8 by lovetox at 2022-01-11T00:35:44+01:00
Update Dockerfile
- - - - -
1 changed file:
- docker/Dockerfile
Changes:
=====================================
docker/Dockerfile
=====================================
@@ -8,6 +8,7 @@ RUN apt-get install -y appstream-util
RUN apt-get install -y libgirepository1.0-dev
RUN apt-get install -y gir1.2-gtk-3.0
RUN apt-get install -y gir1.2-soup-2.4
+RUN apt-get install -y gir1.2-ayatanaappindicator3-0.1
RUN apt-get install -y gettext
RUN apt-get install -y nodejs
RUN apt-get install -y npm
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ca8036e8c1713f1e1b15a9b92b2e4fb8…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ca8036e8c1713f1e1b15a9b92b2e4fb8…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
23298423 by lovetox at 2022-01-10T21:17:18+01:00
BaseControl: Add annotation future import
- - - - -
1 changed file:
- gajim/gtk/controls/base.py
Changes:
=====================================
gajim/gtk/controls/base.py
=====================================
@@ -23,6 +23,8 @@
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
+from __future__ import annotations
+
from typing import Any
from typing import Dict
from typing import List
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2329842328bec2b04a91961e8506a4c7…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2329842328bec2b04a91961e8506a4c7…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
ff52a454 by wurstsalat at 2022-01-10T19:01:24+01:00
MessageInput: Disable if we are visitor in a MUC
- - - - -
1 changed file:
- gajim/gtk/controls/groupchat.py
Changes:
=====================================
gajim/gtk/controls/groupchat.py
=====================================
@@ -875,10 +875,15 @@ def _nec_ping(self, event):
elif event.name == 'ping-error':
self.add_info_message(event.error)
+ def _set_message_input_sensitive(self, state: bool) -> None:
+ self.xml.formattings_button.set_sensitive(state)
+ self.msg_textview.set_sensitive(state)
+ self.msg_textview.set_editable(state)
+
def _set_control_active(self) -> None:
- self.xml.formattings_button.set_sensitive(True)
- self.msg_textview.set_sensitive(True)
- self.msg_textview.set_editable(True)
+ contact = self.contact.get_self()
+ if not contact.role.is_visitor:
+ self._set_message_input_sensitive(True)
self.roster.initial_draw()
self.conversation_view.update_avatars()
@@ -886,9 +891,7 @@ def _set_control_active(self) -> None:
self.update_actions()
def _set_control_inactive(self) -> None:
- self.xml.formattings_button.set_sensitive(False)
- self.msg_textview.set_sensitive(False)
- self.msg_textview.set_editable(False)
+ self._set_message_input_sensitive(False)
self.roster.enable_sort(False)
self.roster.clear()
@@ -1013,6 +1016,7 @@ def _on_user_role_changed(self,
actor = '' if actor is None else _(' by {actor}').format(actor=actor)
if properties.is_muc_self_presence:
+ self._set_message_input_sensitive(not user_contact.role.is_visitor)
message = _('** Your Role has been set to '
'{role}{actor}{reason}').format(role=role,
actor=actor,
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ff52a454d995eb57357fc7ce9abdb5cb…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ff52a454d995eb57357fc7ce9abdb5cb…
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:
dcce30a4 by lovetox at 2022-01-10T17:38:58+01:00
JID: Add option to coerce to bare jid while parsing
- - - - -
21e8df5c by lovetox at 2022-01-10T17:49:11+01:00
MUC: Force muc user real JIDs to bare
Its unspecified if servers need to send a full JID or bare JID here.
Further its also unspecified if they need to send all full JIDs of
all connected resources.
So we implement on what we can actually depend, there needs to be
at least a bare JID.
- - - - -
2 changed files:
- nbxmpp/modules/muc/util.py
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/modules/muc/util.py
=====================================
@@ -177,7 +177,7 @@ def parse_muc_user(muc_user, is_presence=True):
jid = item_dict.get('jid')
if jid is not None:
try:
- jid = JID.from_string(jid)
+ jid = JID.from_string(jid, force_bare=True)
except InvalidJid as error:
raise StanzaMalformed('invalid jid %s, %s' % (jid, error))
=====================================
nbxmpp/protocol.py
=====================================
@@ -595,7 +595,7 @@ class JID:
@classmethod
@functools.lru_cache(maxsize=None)
- def from_string(cls, jid_string: str) -> JID:
+ def from_string(cls, jid_string: str, force_bare: bool = False) -> JID:
# https://tools.ietf.org/html/rfc7622#section-3.2
# Remove any portion from the first '/' character to the end of the
@@ -614,6 +614,11 @@ class JID:
else:
localpart, domainpart = None, rest
+ if force_bare:
+ if localpart is None:
+ raise LocalpartByteLimit
+ resourcepart = None
+
return cls(localpart=localpart,
domain=domainpart,
resource=resourcepart)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/daf9c92cd6f2a81e491de53…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/daf9c92cd6f2a81e491de53…
You're receiving this email because of your account on dev.gajim.org.