Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
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

@jfrederickson

Description

@jfrederickson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PresenceP4(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patchesS-TolerableMinor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.good first issueGood for newcomersz-bug(Deprecated Label)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions