Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
ea42cf0f
by Philipp Hörist at 2022-10-29T20:28:53+02:00
1 changed file:
Changes:
| ... | ... | @@ -305,6 +305,7 @@ def change_status(status: str, message: str, account: str) -> bool: |
| 305 | 305 | '''
|
| 306 | 306 | if status not in ('offline', 'online', 'chat', 'away', 'xa', 'dnd'):
|
| 307 | 307 | status = ''
|
| 308 | + |
|
| 308 | 309 | if account:
|
| 309 | 310 | if not status:
|
| 310 | 311 | if account not in app.settings.get_active_accounts():
|
| ... | ... | @@ -327,7 +328,7 @@ def change_status(status: str, message: str, account: str) -> bool: |
| 327 | 328 | GLib.idle_add(app.get_client(acc).change_status,
|
| 328 | 329 | status,
|
| 329 | 330 | message) # pyright: ignore
|
| 330 | - return False
|
|
| 331 | + return True
|
|
| 331 | 332 | |
| 332 | 333 | @staticmethod
|
| 333 | 334 | def list_accounts() -> list[str]:
|