mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 20:43:08 +02:00
fix: prevent quoted toast to be triggered when not quoted
This commit is contained in:
parent
26cd12f7bf
commit
48c7eeb57e
3 changed files with 6 additions and 0 deletions
|
@ -397,6 +397,7 @@ function quote() {
|
|||
limit: 1,
|
||||
quote: true,
|
||||
}).then((res) => {
|
||||
if (!(res.length > 0)) return;
|
||||
const el = quoteButton.value as HTMLElement | null | undefined;
|
||||
if (el && res.length > 0) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
@ -419,6 +420,7 @@ function quote() {
|
|||
limit: 1,
|
||||
quote: true,
|
||||
}).then((res) => {
|
||||
if (!(res.length > 0)) return;
|
||||
const el = quoteButton.value as HTMLElement | null | undefined;
|
||||
if (el && res.length > 0) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
|
|
@ -441,6 +441,7 @@ function quote() {
|
|||
limit: 1,
|
||||
quote: true,
|
||||
}).then((res) => {
|
||||
if (!(res.length > 0)) return;
|
||||
const el = quoteButton.value as HTMLElement | null | undefined;
|
||||
if (el && res.length > 0) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
@ -463,6 +464,7 @@ function quote() {
|
|||
limit: 1,
|
||||
quote: true,
|
||||
}).then((res) => {
|
||||
if (!(res.length > 0)) return;
|
||||
const el = quoteButton.value as HTMLElement | null | undefined;
|
||||
if (el && res.length > 0) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
|
|
@ -326,6 +326,7 @@ function quote() {
|
|||
limit: 1,
|
||||
quote: true,
|
||||
}).then((res) => {
|
||||
if (!(res.length > 0)) return;
|
||||
const el = quoteButton.value as HTMLElement | null | undefined;
|
||||
if (el && res.length > 0) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
@ -348,6 +349,7 @@ function quote() {
|
|||
limit: 1,
|
||||
quote: true,
|
||||
}).then((res) => {
|
||||
if (!(res.length > 0)) return;
|
||||
const el = quoteButton.value as HTMLElement | null | undefined;
|
||||
if (el && res.length > 0) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
|
Loading…
Reference in a new issue