forked from woem.men/forkey
fix(MisskeyIO#907): サブスクライブコマンドは必要だった (MisskeyIO#910)
This commit is contained in:
parent
428ff56abe
commit
d423d9bb44
1 changed files with 6 additions and 1 deletions
|
@ -86,9 +86,14 @@ export function useNoteCapture(props: {
|
|||
|
||||
function capture(withHandler = false): void {
|
||||
if (connection) {
|
||||
let command: string;
|
||||
if ($i && (note.value?.visibleUserIds?.includes($i.id) ?? note.value?.mentions?.includes($i.id))) {
|
||||
connection.send(document.body.contains(props.rootEl.value ?? null as Node | null) ? 'sr' : 's', { id: note.value.id });
|
||||
command = document.body.contains(props.rootEl.value ?? null as Node | null) ? 'sr' : 's';
|
||||
} else {
|
||||
command = 's';
|
||||
}
|
||||
|
||||
connection.send(command, { id: note.value.id });
|
||||
if (pureNote.value.id !== note.value.id) connection.send('s', { id: pureNote.value.id });
|
||||
if (withHandler) connection.on('noteUpdated', onStreamNoteUpdated);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue