-
Couldn't load subscription status.
- Fork 382
Adding reaction goes to end of list #2403
Description
When a reaction is added (tested using double tap to add, haven't validated for normal tap to add) it gets added to the end of list of reactions.
If I already have a reaction (e.g. 🎉) and then add one (e.g. 👍) it will be ordered 🎉 👍 in GitHawk UI. If I leave the issue and then re-enter it, it gets ordered based on a hardcoded array so that it renders 👍 🎉 (this is the same as GitHub's UI).
It's a very minor bug but when we insert a new reaction, we should place it respecting the order of reactions as determined in this array:
GitHawk/Classes/Issues/Comments/Reactions/ReactionsMenuViewController.swift
Lines 41 to 48 in e738618
| private let reactions: [ReactionContent] = [ | |
| .thumbsUp, | |
| .hooray, | |
| .thumbsDown, | |
| .heart, | |
| .laugh, | |
| .confused | |
| ] |