Added support for force refresh without caching, using this system on chatList.dart
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:marianum_mobile/api/marianumcloud/talk/chat/getChat.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/talk/chat/getChatParams.dart';
|
||||
@ -14,10 +15,13 @@ class GetChatCache extends RequestCache<GetChatResponse> {
|
||||
|
||||
@override
|
||||
Future<GetChatResponse> onLoad() {
|
||||
log("LOAD");
|
||||
return GetChat(
|
||||
chatToken,
|
||||
GetChatParams(
|
||||
lookIntoFuture: GetChatParamsSwitch.off
|
||||
lookIntoFuture: GetChatParamsSwitch.off,
|
||||
setReadMarker: GetChatParamsSwitch.on,
|
||||
limit: 200,
|
||||
)
|
||||
).run();
|
||||
}
|
||||
|
Reference in New Issue
Block a user