Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
e6d275f4 by wurstsalat at 2024-12-08T21:17:25+01:00
perf: Message display: Reduce maximum message length to 1000 characters

Messages above this limit can be viewed via 'View full message'

- - - - -
2a4386b9 by wurstsalat at 2024-12-08T21:44:39+01:00
cfix: TestConversationView: Fix missing mock

- - - - -


2 changed files:

- gajim/gtk/const.py
- test/gtk/ui_test_conversation_view.py


Changes:

=====================================
gajim/gtk/const.py
=====================================
@@ -45,7 +45,7 @@ class Setting(NamedTuple):
 
 DEFAULT_WORKSPACE_COLOR = "rgb(191,15,167)"
 
-MAX_MESSAGE_LENGTH = 5000
+MAX_MESSAGE_LENGTH = 1000
 
 
 @unique


=====================================
test/gtk/ui_test_conversation_view.py
=====================================
@@ -73,6 +73,7 @@ def _get_contact(self) -> BareContact:
         )
         contact.get_avatar = MagicMock(return_value=avatar)
         contact.settings = ContactSettings(ACCOUNT, JID.from_string(ACCOUNT))
+        contact.disconnect_all_from_obj = MagicMock()
         return contact
 
     def _on_jump_to_clicked(self, _button: Gtk.Button) -> None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/8dc63b7391379d2b474bfeafa4f54787008e98af...2a4386b9a0da468aab6c599dbb0573e0a6d8ef9c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/8dc63b7391379d2b474bfeafa4f54787008e98af...2a4386b9a0da468aab6c599dbb0573e0a6d8ef9c
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to