Add emoji reaction history list page
This commit is contained in:
parent
83f037ff76
commit
d73238d9f6
10 changed files with 264 additions and 2 deletions
|
@ -258,7 +258,17 @@ class Status extends ImmutablePureComponent {
|
|||
|
||||
handleEmojiReact = (status, emoji) => {
|
||||
const { dispatch } = this.props;
|
||||
dispatch(emojiReact(status, emoji));
|
||||
const { signedIn } = this.context.identity;
|
||||
|
||||
if (signedIn) {
|
||||
dispatch(emojiReact(status, emoji));
|
||||
} else {
|
||||
dispatch(openModal('INTERACTION', {
|
||||
type: 'favourite',
|
||||
accountId: status.getIn(['account', 'id']),
|
||||
url: status.get('url'),
|
||||
}));
|
||||
}
|
||||
};
|
||||
|
||||
handleUnEmojiReact = (status, emoji) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue