-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement User
GraphQL subscription (#4)
#7
Conversation
FCM
|
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.
@andrigel есть несколько багов, просьба починить. Плюс хотелось бы добавить все-все события юзера (реализовать обработку только тех, которые не требуют приседаний), порефакторить подписку в контактах. Плюс некоторые мелочи.
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.
@andrigel, получился тяп-ляп, а не исправление.
- add `RxUser` listening to updates in `Contacts` tab and on `User` page - impl `RxUser` and its subscription to `User` events Additionally: - add online status indicators to `Contacts` and `Chats` tab - add `RxChatContact.id` getter - fix `UserRepository.get` spamming backend 982cb49
Resolves #4
Synopsis
Обновления
User
ов нереактивны - пользователь обновляется только тогда, когда к стор стучится свежая модель данных пользователя.Solution
Использовать подписку для обновлений даных пользователя в Store User'a. Также создать StreamControler.broadcast, который активирует/отменяет удаленную подписку на пользователя по необходимости.
В отдельном PRе будет добавлено больше сценариев E2E тестирования подписки и добавлена подписка на
RxUser.updates
в контроллере вкладки чатов.Checklist
k::
labels applied