Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
7e2351d2 by lovetox at 2021-03-06T21:31:28+01:00
Remove unused import
- - - - -
1 changed file:
- gajim/gtk/roster.py
Changes:
=====================================
gajim/gtk/roster.py
=====================================
@@ -14,7 +14,6 @@
from gajim.common.const import AvatarSize
from gajim.common.const import StyleAttr
from gajim.common.const import PresenceShowExt
-from gajim.common.helpers import jid_is_blocked
from gajim.common.helpers import event_filter
from gajim.common.i18n import _
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/7e2351d29fa2cb8809f0713973efac03…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/7e2351d29fa2cb8809f0713973efac03…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
48619565 by lovetox at 2021-03-06T20:57:12+01:00
Blocking: Adapt to nbxmpp changes
- - - - -
1 changed file:
- gajim/common/modules/blocking.py
Changes:
=====================================
gajim/common/modules/blocking.py
=====================================
@@ -69,7 +69,7 @@ def get_blocking_list(self):
raise_if_error(blocking_list)
- self.blocked = blocking_list
+ self.blocked = list(blocking_list)
app.nec.push_incoming_event(NetworkEvent('blocking',
conn=self._con,
changed=self.blocked))
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/486195654b47fe0b555d433a84389603…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/486195654b47fe0b555d433a84389603…
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:
03bbb2fa by lovetox at 2021-03-06T16:04:59+01:00
Roster: Use a set for groups
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/structs.py
=====================================
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
-from typing import List
+from typing import Set
import time
import random
@@ -143,7 +143,7 @@ class RosterItem:
name: str = None
ask: str = None
subscription: str = None
- groups: List[str] = field(default_factory=list)
+ groups: Set[str] = field(default_factory=set)
@classmethod
def from_node(cls, node):
@@ -156,7 +156,7 @@ class RosterItem:
attrs['jid'] = jid
groups = {group.getData() for group in node.getTags('group')}
- attrs['groups'] = list(groups)
+ attrs['groups'] = set(groups)
return cls(**attrs)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/03bbb2fafe30652c905beb49…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/03bbb2fafe30652c905beb49…
You're receiving this email because of your account on dev.gajim.org.