enhance(frontend): リストTLで、ユーザーが追加・削除されてもTLを更新しないように
This commit is contained in:
parent
4f4f15a6a4
commit
fca6ae9403
|
@ -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 New Issue