Undo reaction by tapping
This commit is contained in:
parent
f5d22664ac
commit
c62ef3fc3c
1 changed files with 3 additions and 4 deletions
|
|
@ -110,13 +110,12 @@
|
||||||
pushModal(ProfileList, {title, subtitle, pubkeys, url})
|
pushModal(ProfileList, {title, subtitle, pubkeys, url})
|
||||||
|
|
||||||
const onReactionClick = (events: TrustedEvent[], pubkeys: string[], info: string) => {
|
const onReactionClick = (events: TrustedEvent[], pubkeys: string[], info: string) => {
|
||||||
if (isMobile) {
|
if (isMobile && !pubkeys.includes($user.pubkey)) {
|
||||||
showReactors(pubkeys, info.replace(" reacted", ""), "Reacted to this message")
|
showReactors(pubkeys, info.replace(" reacted", ""), "Reacted to this message")
|
||||||
return
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
toggleReaction(events)
|
toggleReaction(events)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const onZapClick = (pubkeys: string[], info: string) => {
|
const onZapClick = (pubkeys: string[], info: string) => {
|
||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue