seesThread method

bool seesThread(
  1. String principalId,
  2. String threadId
)

Whether principalId sees threadId.

Implementation

bool seesThread(String principalId, String threadId) {
  final t = threads[threadId];
  return t != null && seesChannel(principalId, t['channel_id']! as String);
}