-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(typing): send typing indicator events - epic (WP-4590) #2127
Conversation
…-4590) (#2118) * fix: exclude selfuser from typingevents * fix: exclude selfuser from typingevents * fix: coverage for flag check * chore: api configuration for sending typing status * chore: api configuration for sending typing status v0 * chore: api configuration for sending typing status v0 * chore: pr comments * feat: mapper and repo ops * feat: mapper and repo ops * feat: mapper and repo ops * chore: detekt * chore: detekt * chore: tests broken * feat(typing): send typing indicator events use case and cleanup code pt2. (WPB-4590) (#2121) * feat: mapper and repo ops deletion * chore: ip * chore: some fun refactoring, just ideas * chore: some fun refactoring, just ideas * chore: some fun refactoring, just ideas * chore: working base * chore: clear indicators * chore: clear indicators * chore: clear indicators * chore: notes * chore: refactor into new classes splitted * chore: comments cleanup * chore: detekt fixes * Empty-Commit * feat(typing): send typing indicator event tests pt3. (WPB-4590) (#2122) * chore: test cov * chore: test cov * chore: test cov * chore: test cov * chore: test cov
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful and clean implementation 🌺 Awesome Job Yamil👷 👏
userTypingCache.block { entry -> | ||
entry.clear() | ||
}.also { | ||
userTypingDataSourceFlow.tryEmit(Unit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we are using tryEmit if we are not checking the result value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so we can make the Observers of userTypingDataSourceFlow
collect
the new state. Since we are relying on this flow to get new map userTypingCache
states to consumers.
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Collection of small PRs that brings alive the sending typing indicator, plus some refactor on the receiving part to make it more stable, testable and mantainable.
The PRs already reviewd.
Testing
Test Coverage (Optional)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.