fix(client): Fix #9600 chat paging issue
Previous chat history not shown
This commit is contained in:
		
							parent
							
								
									67d366c3ca
								
							
						
					
					
						commit
						a9acd72eb7
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -194,8 +194,6 @@ const fetchMore = async (): Promise<void> => { | ||||||
| 		limit: SECOND_FETCH_LIMIT + 1, | 		limit: SECOND_FETCH_LIMIT + 1, | ||||||
| 		...(props.pagination.offsetMode ? { | 		...(props.pagination.offsetMode ? { | ||||||
| 			offset: offset.value, | 			offset: offset.value, | ||||||
| 		} : props.pagination.reversed ? { |  | ||||||
| 			sinceId: items.value[0].id, |  | ||||||
| 		} : { | 		} : { | ||||||
| 			untilId: items.value[items.value.length - 1].id, | 			untilId: items.value[items.value.length - 1].id, | ||||||
| 		}), | 		}), | ||||||
|  | @ -262,8 +260,6 @@ const fetchMoreAhead = async (): Promise<void> => { | ||||||
| 		limit: SECOND_FETCH_LIMIT + 1, | 		limit: SECOND_FETCH_LIMIT + 1, | ||||||
| 		...(props.pagination.offsetMode ? { | 		...(props.pagination.offsetMode ? { | ||||||
| 			offset: offset.value, | 			offset: offset.value, | ||||||
| 		} : props.pagination.reversed ? { |  | ||||||
| 			untilId: items.value[0].id, |  | ||||||
| 		} : { | 		} : { | ||||||
| 			sinceId: items.value[items.value.length - 1].id, | 			sinceId: items.value[items.value.length - 1].id, | ||||||
| 		}), | 		}), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue