mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
fix: msg_feed insert type error (#411)
* fix: msg_feed insert type error * jump to dyn secondary reply
This commit is contained in:
committed by
GitHub
parent
2f616ba237
commit
2949adbbfd
@@ -23,10 +23,12 @@ class AtMeController extends CommonController {
|
||||
cursor = data.cursor?.id ?? -1;
|
||||
cursorTime = data.cursor?.time ?? -1;
|
||||
if (currentPage != 1 && loadingState.value is Success) {
|
||||
data.items ??= <AtMeItems>[];
|
||||
data.items!.insert(0, (loadingState.value as Success).response);
|
||||
loadingState.value = LoadingState.success(
|
||||
(loadingState.value as Success).response as List
|
||||
..addAll(data.items ?? <AtMeItems>[]));
|
||||
} else {
|
||||
loadingState.value = LoadingState.success(data.items);
|
||||
}
|
||||
loadingState.value = LoadingState.success(data.items);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user