getCallCover method
- UserId? me
Returns an UserCallCover of this Chat.
Implementation
UserCallCover? getCallCover(UserId? me) {
switch (kind) {
case ChatKind.monolog:
return members.firstOrNull?.user.callCover;
case ChatKind.dialog:
return members.firstWhereOrNull((e) => e.user.id != me)?.user.callCover;
case ChatKind.group:
case ChatKind.artemisUnknown:
return null;
}
}