|
|
@@ -53,7 +53,14 @@ class TalkRepository {
|
|
|
}
|
|
|
|
|
|
Future<TalkPaginateResponse> refreshHomeTalkData({int? sortType = 1}) {
|
|
|
- return requestTalkPagePaginate(0, 10, sortType: sortType, isClearAll: true);
|
|
|
+ int limit;
|
|
|
+ if (_talkList.isEmpty) {
|
|
|
+ limit = 10;
|
|
|
+ } else {
|
|
|
+ limit = _talkList.length;
|
|
|
+ }
|
|
|
+ return requestTalkPagePaginate(0, limit,
|
|
|
+ sortType: sortType, isClearAll: true);
|
|
|
}
|
|
|
|
|
|
Future<TalkPaginateResponse> requestTalkPagePaginate(int offset, int limit,
|