diff options
author | lovetox <philipp@hoerist.com> | 2022-08-13 13:31:31 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-08-13 13:31:48 +0300 |
commit | c57682ce2ad82eb58e08f461f7877ed16c794e49 (patch) | |
tree | befcecb3cdef1d85fe0dd1594df3b7e825e825f1 | |
parent | 53714f8e53345be60fa470a0905cbd8f3c1ef73f (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.py | 7 |
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 '' |