ssb: Remove the react confirmation dialog.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 26m34s

This commit is contained in:
2025-01-15 12:34:02 -05:00
parent 6eec142499
commit 364e95698e
3 changed files with 13 additions and 33 deletions

View File

@ -121,28 +121,18 @@ class TfMessageElement extends LitElement {
vote(emoji) {
let reaction = emoji;
let message = this.message.id;
if (
confirm(
'Are you sure you want to react with ' +
reaction +
' to ' +
message +
'?'
)
) {
tfrpc.rpc
.appendMessage(this.whoami, {
type: 'vote',
vote: {
link: message,
value: 1,
expression: reaction,
},
})
.catch(function (error) {
alert(error?.message);
});
}
tfrpc.rpc
.appendMessage(this.whoami, {
type: 'vote',
vote: {
link: message,
value: 1,
expression: reaction,
},
})
.catch(function (error) {
alert(error?.message);
});
}
react(event) {