Philipp Hörist pushed to branch master at gajim / gajim


Commits:
ea42cf0f by Philipp Hörist at 2022-10-29T20:28:53+02:00
fix: Remote: Return True for change_status

- - - - -


1 changed file:

- gajim/common/dbus/remote_control.py


Changes:

=====================================
gajim/common/dbus/remote_control.py
=====================================
@@ -305,6 +305,7 @@ def change_status(status: str, message: str, account: str) 
-> bool:
         '''
         if status not in ('offline', 'online', 'chat', 'away', 'xa', 'dnd'):
             status = ''
+
         if account:
             if not status:
                 if account not in app.settings.get_active_accounts():
@@ -327,7 +328,7 @@ def change_status(status: str, message: str, account: str) 
-> bool:
                 GLib.idle_add(app.get_client(acc).change_status,
                               status,
                               message)  # pyright: ignore
-        return False
+        return True
 
     @staticmethod
     def list_accounts() -> list[str]:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ea42cf0f92d1b06f26cfbe47ea7bb42de06f7230

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ea42cf0f92d1b06f26cfbe47ea7bb42de06f7230
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to