mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-01 03:41:31 +02:00
Fix add reactions prompt button showing up even if all reactions have been removed
This commit is contained in:
parent
f0a0d7f998
commit
a22a1918e1
@ -174,6 +174,8 @@ export default class ReactionsRow extends React.PureComponent<IProps, IState> {
|
||||
/>;
|
||||
}).filter(item => !!item);
|
||||
|
||||
if (!items.length) return null;
|
||||
|
||||
// Show the first MAX_ITEMS if there are MAX_ITEMS + 1 or more items.
|
||||
// The "+ 1" ensure that the "show all" reveals something that takes up
|
||||
// more space than the button itself.
|
||||
|
Loading…
x
Reference in New Issue
Block a user