Added automatic refresh (every 60s) of chatList.dart and periodic timestamp updates (every 30s)

This commit is contained in:
2023-02-21 15:27:37 +01:00
parent 97551738b0
commit cee122602f
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,4 @@
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';
@ -15,7 +14,6 @@ class GetChatCache extends RequestCache<GetChatResponse> {
@override
Future<GetChatResponse> onLoad() {
log("LOAD");
return GetChat(
chatToken,
GetChatParams(