Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent users logic #1015

Closed
1 task done
alfogrillo opened this issue Feb 17, 2023 · 0 comments
Closed
1 task done

Recent users logic #1015

alfogrillo opened this issue Feb 17, 2023 · 0 comments
Labels
A-Search T-Enhancement Team: Element X Feature X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue

Comments

@alfogrillo
Copy link

alfogrillo commented Feb 17, 2023

As a user that wants to create a new chat I want to see some proposals for users to invite so I don't have to remember the matrix id of the person I want to have a conversation with.

Designs
https://www.figma.com/file/0MMNu7cTOzLOlWb7ctTkv3/Element-X-(new)?node-id=189%3A25255&t=7PXA7SLLH426S2GK-1

ACs

  • The user can see other users (aka direct rooms) he had a recent conversation with
  • Clients will show at most 5 results, but it should be a changeable parameter.
  • Results are sorted by last activity / last message (more details below)
  • Results should be built by just using local information

Web implementation

  1. Take all the direct rooms of the user (ignore group DM rooms)
  2. For each room in the above consider the last 20 events in the local database
  3. In the above 20 events consider just the ones with types m.room.message, m.room.encrypted, m.sticker. Consider just the timestamp of the most recent event (if any) with the above filters.
  4. Return the users (the other party in the chat) sorted by the timestamp found at the previous step
    • If timestamp are the same for two users, sort by alphabetical order of user ids.

Web reference

Tasks

Preview Give feedback
  1. Z-ElementX-Alpha enhancement
@alfogrillo alfogrillo changed the title User suggestions and recents (Draft) User "recents" section logic Feb 22, 2023
@alfogrillo alfogrillo changed the title User "recents" section logic Recent users logic Feb 22, 2023
@alfogrillo alfogrillo added A-Search X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue and removed A-DMs App: ElementX Android App: ElementX iOS labels Feb 22, 2023
@alfogrillo alfogrillo changed the title Recent users logic Recent users logic (draft) Feb 22, 2023
@alfogrillo alfogrillo changed the title Recent users logic (draft) Recent users logic Feb 23, 2023
@Johennes Johennes closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Search T-Enhancement Team: Element X Feature X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue
Projects
None yet
Development

No branches or pull requests

2 participants