mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +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 endpoint;
 | 
				
			||||||
let query;
 | 
					let query;
 | 
				
			||||||
let connection;
 | 
					let connection;
 | 
				
			||||||
| 
						 | 
					@ -125,8 +117,6 @@ if (props.src === 'antenna') {
 | 
				
			||||||
		listId: props.list,
 | 
							listId: props.list,
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
	connection.on('note', prepend);
 | 
						connection.on('note', prepend);
 | 
				
			||||||
	connection.on('userAdded', onUserAdded);
 | 
					 | 
				
			||||||
	connection.on('userRemoved', onUserRemoved);
 | 
					 | 
				
			||||||
} else if (props.src === 'channel') {
 | 
					} else if (props.src === 'channel') {
 | 
				
			||||||
	endpoint = 'channels/timeline';
 | 
						endpoint = 'channels/timeline';
 | 
				
			||||||
	query = {
 | 
						query = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue