Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2022-08-13 13:31:31 +0300
committerlovetox <philipp@hoerist.com>2022-08-13 13:31:48 +0300
commitc57682ce2ad82eb58e08f461f7877ed16c794e49 (patch)
treebefcecb3cdef1d85fe0dd1594df3b7e825e825f1
parent53714f8e53345be60fa470a0905cbd8f3c1ef73f (diff)
imprv: Chatstate: Don’t make too many assumptions
- active does not necessarily mean the user looks at the chat - gone: In todays chat clients there is no difference between closing a chat and not looking at it or switching to another chat. In both cases the user gets notified if new messages arrive, its not clear how this informtation can be important for our users. Further for communicating idle states there are more useful mechanisms like idle presence and presence show states.
-rw-r--r--gajim/common/helpers.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/gajim/common/helpers.py b/gajim/common/helpers.py
index facdec786..b3243575e 100644
--- a/gajim/common/helpers.py
+++ b/gajim/common/helpers.py
@@ -309,17 +309,12 @@ def get_uf_chatstate(chatstate: str) -> str:
'''
Remove chatstate jargon and returns user friendly messages
'''
- if chatstate == 'active':
- return _('is paying attention to the conversation')
- if chatstate == 'inactive':
+ if chatstate in ('inactive', 'gone'):
return _('is doing something else')
if chatstate == 'composing':
return _('is composing a message…')
if chatstate == 'paused':
- # paused means he or she was composing but has stopped for a while
return _('paused composing a message')
- if chatstate == 'gone':
- return _('has closed the chat window or tab')
return ''