getRecentChatListHistoryByTopic method
Future
getRecentChatListHistoryByTopic(
{ - String? topicId,
- required bool firstSet,
- int limit = 15,
})
override
Implementation
@override
Future<dynamic> getRecentChatListHistoryByTopic({String? topicId, required bool firstSet, int limit = 15}) async {
//getRecentChats
dynamic recentResponse;
try {
LogMessage.d("getRecentChatListHistoryByTopic", "firstSet $firstSet");
recentResponse =
await mirrorFlyMethodChannel.invokeMethod('getRecentChatListHistoryByTopic', {"topicId": topicId, "firstSet": firstSet, "limit": limit});
LogMessage.d("getRecentChatListHistoryByTopic", "$recentResponse");
return recentResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}