This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
status_msg is overwritten when presence is changed (user goes offline) #2245
Copy link
Copy link
Closed
Labels
A-PresenceP4(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patchesS-TolerableMinor significance, cosmetic issues, low or no impact to users.Minor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.good first issueGood for newcomersGood for newcomersz-bug(Deprecated Label)(Deprecated Label)
Description
I was testing the status and presence features of Matrix, and noticed this:
>>> client.set_status("@sibyl:localhost", "test and stuff")
>>> client.get_status("@sibyl:localhost")
{'user_id': '@sibyl:localhost', 'presence': 'online', 'status_msg': 'test and stuff', 'last_active_ago': 1836, 'currently_active': True}
>>> client.get_status("@sibyl:localhost")
{'user_id': '@sibyl:localhost', 'presence': 'online', 'status_msg': 'test and stuff', 'last_active_ago': 11886, 'currently_active': True}
>>> client.get_status("@sibyl:localhost")
{'user_id': '@sibyl:localhost', 'presence': 'online', 'status_msg': 'test and stuff', 'last_active_ago': 22203, 'currently_active': True}
>>> client.get_status("@sibyl:localhost")
{'user_id': '@sibyl:localhost', 'presence': 'online', 'status_msg': 'test and stuff', 'last_active_ago': 34950, 'currently_active': True}
>>> client.get_status("@sibyl:localhost")
{'user_id': '@sibyl:localhost', 'presence': 'online', 'status_msg': 'test and stuff', 'last_active_ago': 52767, 'currently_active': True}
>>> client.get_status("@sibyl:localhost")
{'user_id': '@sibyl:localhost', 'presence': 'offline', 'last_active_ago': 69343}
My status_msg appears to be overwritten when my status changes to "offline" due to inactivity. Needless to say, this makes status_msg not so useful.
This is using matrix-python-sdk (with my presence changes), and the only active client at the time for that user was the SDK I was using to enter those function calls above.
MurzNN, deepbluev7 and AdrianKlm
Metadata
Metadata
Assignees
Labels
A-PresenceP4(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patchesS-TolerableMinor significance, cosmetic issues, low or no impact to users.Minor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.good first issueGood for newcomersGood for newcomersz-bug(Deprecated Label)(Deprecated Label)