fix(ui): wrong reply to account (#2649)

This commit is contained in:
Joaquín Sánchez 2024-03-05 14:21:58 +01:00 committed by GitHub
parent 873c62e9ef
commit 62f70250d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ useIntersectionObserver(
watch(
() => [props.status, targetIsVisible.value] satisfies WatcherType,
([newStatus, newVisible]) => {
if (newStatus.account) {
if (newStatus.account && newStatus.inReplyToAccountId === newStatus.account.id) {
account.value = newStatus.account
return
}