getThreadMessages method
Implementation
Future<(Exception?, List<ThreadMessage>?)> getThreadMessages(
String threadId) async {
final threadMessages = await message.getThreadMessages(threadId);
if (threadMessages == null) {
return left(MissingArgumentsException('Thread messages is null'));
}
return right(threadMessages);
}