Skip to content

Commit

Permalink
handleOutboundEvents [nfc]: Adjust the curly-bracket position.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam-Arora24 committed Apr 3, 2021
1 parent d8ae1f5 commit 3e8aaf5
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/webview/handleOutboundEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,24 +286,22 @@ export const handleWebViewOutboundEvent = (
}
break;

case 'reaction':
{
const { code, messageId, name, reactionType, voted } = event;
const { auth } = props.backgroundData;
if (voted) {
api.emojiReactionRemove(auth, messageId, reactionType, code, name);
} else {
api.emojiReactionAdd(auth, messageId, reactionType, code, name);
}
case 'reaction': {
const { code, messageId, name, reactionType, voted } = event;
const { auth } = props.backgroundData;
if (voted) {
api.emojiReactionRemove(auth, messageId, reactionType, code, name);
} else {
api.emojiReactionAdd(auth, messageId, reactionType, code, name);
}
break;
}

case 'reactionDetails':
{
const { messageId, reactionName } = event;
NavigationService.dispatch(navigateToMessageReactionScreen(messageId, reactionName));
}
case 'reactionDetails': {
const { messageId, reactionName } = event;
NavigationService.dispatch(navigateToMessageReactionScreen(messageId, reactionName));
break;
}

case 'addReaction': {
const { messageId } = event;
Expand Down

0 comments on commit 3e8aaf5

Please sign in to comment.