Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
b22e27c4 by wurstsalat at 2021-11-03T00:51:40+01:00
ChatList: Don't update time if there is no valid timestamp
- - - - -
1 changed file:
- gajim/gtk/chat_list.py
Changes:
=====================================
gajim/gtk/chat_list.py
=====================================
@@ -633,6 +633,8 @@ def set_timestamp(self, timestamp):
self.update_time()
def update_time(self):
+ if self.timestamp == 0:
+ return
self._ui.timestamp_label.set_text(
get_uf_relative_time(self.timestamp))
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/b22e27c4a6bfdbff4deb0ec02205719b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/b22e27c4a6bfdbff4deb0ec02205719b…
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:
07d50664 by lovetox at 2021-11-03T00:41:24+01:00
DiscoInfo: Add is_irc()
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/structs.py
=====================================
@@ -474,6 +474,13 @@ class DiscoInfo(NamedTuple):
return True
return False
+ @property
+ def is_irc(self) -> bool:
+ for identity in self.identities:
+ if identity.category == 'conference' and identity.type == 'irc':
+ return True
+ return False
+
@property
def muc_name(self) -> Optional[str]:
if self.muc_room_name:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/07d5066463e8cdbcfe15636f…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/07d5066463e8cdbcfe15636f…
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:
f020ac26 by lovetox at 2021-11-02T23:54:47+01:00
Blocking: Don’t abort processing after parsing unblocks
If we return the IQ will not be answered
- - - - -
fe4b7e03 by lovetox at 2021-11-03T00:36:13+01:00
Structs: Inherit from NamedTuple
- - - - -
2 changed files:
- nbxmpp/modules/blocking.py
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/modules/blocking.py
=====================================
@@ -84,7 +84,6 @@ class Blocking(BaseModule):
unblock = stanza.getTag('unblock', namespace=Namespace.BLOCKING)
if unblock is not None:
properties.blocking = _parse_push(unblock)
- return
block = stanza.getTag('block', namespace=Namespace.BLOCKING)
if block is not None:
=====================================
nbxmpp/structs.py
=====================================
@@ -146,7 +146,7 @@ class HTTPAuthData(NamedTuple):
body: Optional[str]
-class StanzaIDData:
+class StanzaIDData(NamedTuple):
id: str
by: str
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/54273c9eb392210d753041d…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/54273c9eb392210d753041d…
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:
54273c9e by lovetox at 2021-11-02T23:33:14+01:00
Namespaces: Add annotation
- - - - -
1 changed file:
- nbxmpp/namespaces.py
Changes:
=====================================
nbxmpp/namespaces.py
=====================================
@@ -171,4 +171,4 @@ class _Namespaces:
X_OOB: str = 'jabber:x:oob'
-Namespace = _Namespaces()
+Namespace: _Namespaces = _Namespaces()
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/54273c9eb392210d753041d0…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/54273c9eb392210d753041d0…
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:
1074bf36 by lovetox at 2021-11-02T23:27:46+01:00
Update pyrightconfig.json
- - - - -
1 changed file:
- pyrightconfig.json
Changes:
=====================================
pyrightconfig.json
=====================================
@@ -1,5 +1,4 @@
{
"ignore": ["**/test", "setup.py"],
- "useLibraryCodeForTypes": true,
"typeCheckingMode": "strict",
}
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/1074bf3610b520fe29f9b8f6…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/1074bf3610b520fe29f9b8f6…
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:
8151ea1b by lovetox at 2021-11-02T23:23:20+01:00
Remove unused imports
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/structs.py
=====================================
@@ -16,8 +16,6 @@
# along with this program; If not, see <http://www.gnu.org/licenses/>.
from __future__ import annotations
-from ctypes import string_at
-from datetime import datetime
from typing import Any
from typing import Optional
@@ -27,9 +25,9 @@ from typing import Union
import time
import random
-from collections import namedtuple
from dataclasses import dataclass
from dataclasses import field
+from datetime import datetime
from gi.repository import Soup
from gi.repository import Gio
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/8151ea1b4a189f4864bdce0a…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/8151ea1b4a189f4864bdce0a…
You're receiving this email because of your account on dev.gajim.org.