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

Remove kicked members or those who left from mentions suggestions #208

Open
1 task
tomastiminskas opened this issue Mar 5, 2025 · 0 comments
Open
1 task
Labels

Comments

@tomastiminskas
Copy link
Contributor

Filter members that left or were kicked from a tribe from mentions suggestion list.

Base branch: develop: project needs to be compiled and run from develop branch where the latest changes are pushed.

Context

  • When typing a message on a tribe and entering @ character followed by a letter, a list of members to tag will show up
  • That list is built processing messages in the tribe and getting aliases from them, removing duplicates and old messages.
  • Messages are iterated from oldest to most recent and saving aliases and pictures in an array of tuples

Requirements

  • We want to remove members that were kicked out or who left the tribe from the members suggestions list
  • For that we should check if the message in the iteration is of any of those types (case groupLeave = 15, case groupKick = 16) and if so then remove from the array elements with message.senderPic or message.senderAlias.
  • If user joined again after being kicked or left, then a new most recent message will be processed and it will be added again.

Acceptance Criteria

  • Prevent old members that were kicked or left the tribe to show up in the mentions suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant