-
Notifications
You must be signed in to change notification settings - Fork 984
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
[#10089] Override the behaviour of public chat' unread messages indic… #10117
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (3)
|
@@ -863,7 +856,9 @@ | |||
:chats/unread-messages-number | |||
:<- [:chats/active-chats] | |||
(fn [chats _] | |||
(apply + (map :unviewed-messages-count (vals chats))))) | |||
(let [grouped-chats (group-by :public? (vals chats))] | |||
{:public (apply + (map :unviewed-messages-count (get grouped-chats true))) |
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.
(reduce + ...
? :)
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.
what's the difference?
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.
It just looks more idiomatic to me to use reduce
here. But I've just found that this is an old debate topic https://stackoverflow.com/questions/3153396/clojure-reduce-vs-apply , not a big deal
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.
on the second thought
(transduce (map :unviewed-messages-count) (completing +) (get grouped-chats true))
could do the same thing in one go, doesn't matter here though
@errorists could you take a look |
tested on iOS 📏 perfect score for the list item indicator 10/10! 📐 however the one on the tab bar has a problem, it has a blue halo and the border is set to inside not outside I recall we had the same issue with the edit avatar picture button back when we still had it.
to account for the larger size. I asked @Ferossgp how to get rid of the halo also I'm quite sure it's not introduced in this PR but what the hell is with this empty space over here |
605fb98
to
7c55c55
Compare
100% of end-end tests have passed
Passed tests (1) |
With iOS 13.3 and Android 8.1 no bugs found. |
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
4dbbd7e
to
f5488e1
Compare
fixes #10089