mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 05:43:09 +02:00
enhance(frontend): フォロー/フォロー解除したときに自動でTLをリロードするのをやめるように
- 不便に感じる場合が多いように思う - 将来的にTLがpush型になったら無意味になる
This commit is contained in:
parent
1c57983bfd
commit
30cb791e93
1 changed files with 0 additions and 8 deletions
|
@ -46,12 +46,6 @@ const onUserRemoved = () => {
|
||||||
tlComponent.pagingComponent?.reload();
|
tlComponent.pagingComponent?.reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
const onChangeFollowing = () => {
|
|
||||||
if (!tlComponent.pagingComponent?.backed) {
|
|
||||||
tlComponent.pagingComponent?.reload();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
let endpoint;
|
let endpoint;
|
||||||
let query;
|
let query;
|
||||||
let connection;
|
let connection;
|
||||||
|
@ -79,8 +73,6 @@ if (props.src === 'antenna') {
|
||||||
connection.on('note', prepend);
|
connection.on('note', prepend);
|
||||||
|
|
||||||
connection2 = stream.useChannel('main');
|
connection2 = stream.useChannel('main');
|
||||||
connection2.on('follow', onChangeFollowing);
|
|
||||||
connection2.on('unfollow', onChangeFollowing);
|
|
||||||
} else if (props.src === 'local') {
|
} else if (props.src === 'local') {
|
||||||
endpoint = 'notes/local-timeline';
|
endpoint = 'notes/local-timeline';
|
||||||
query = {
|
query = {
|
||||||
|
|
Loading…
Reference in a new issue