mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 14:05:14 +00:00
enhance(frontend): リストTLで、ユーザーが追加・削除されてもTLを更新しないように
This commit is contained in:
parent
4f4f15a6a4
commit
fca6ae9403
1 changed files with 0 additions and 10 deletions
|
@ -38,14 +38,6 @@ const prepend = note => {
|
|||
}
|
||||
};
|
||||
|
||||
const onUserAdded = () => {
|
||||
tlComponent.pagingComponent?.reload();
|
||||
};
|
||||
|
||||
const onUserRemoved = () => {
|
||||
tlComponent.pagingComponent?.reload();
|
||||
};
|
||||
|
||||
let endpoint;
|
||||
let query;
|
||||
let connection;
|
||||
|
@ -125,8 +117,6 @@ if (props.src === 'antenna') {
|
|||
listId: props.list,
|
||||
});
|
||||
connection.on('note', prepend);
|
||||
connection.on('userAdded', onUserAdded);
|
||||
connection.on('userRemoved', onUserRemoved);
|
||||
} else if (props.src === 'channel') {
|
||||
endpoint = 'channels/timeline';
|
||||
query = {
|
||||
|
|
Loading…
Reference in a new issue