(date: Date)
| 1745 | for (const i in this.reactions) { |
| 1746 | const thing = this.reactions[i]; |
| 1747 | console.log(thing, data); |
| 1748 | if (thing.emoji.name === data.name || (thing.emoji.id === data.id && data.id)) { |
| 1749 | thing.count--; |
| 1750 | if (thing.count === 0) { |
| 1751 | this.reactions.splice(Number(i), 1); |
| 1752 | this.updateReactions(); |
| 1753 | return; |
| 1754 | } |
| 1755 | if (id === this.localuser.user.id) { |
| 1756 | thing.me = false; |
| 1757 | this.updateReactions(); |
| 1758 | return; |
| 1759 | } |
| 1760 | } |
| 1761 | } |
| 1762 | } |
| 1763 | reactionRemoveAll() { |
no test coverage detected