see method

Future<bool> see()

Marks the message as seen.

Implementation

Future<bool> see() async {
  try {
    var r = await Requests.patch('/messages/$id', auths[accountId]!.headers);
    return r;
  } catch (e) {
    if (e is MailException) {
      if (e.code == 422) {
        return true;
      }
    }
    return false;
  }
}