verifyActivity method

Future<bool> verifyActivity()

Implementation

Future<bool> verifyActivity() async {
  if (lastActivity.add(Duration(minutes: 10)).isAfter(DateTime.now())) {
    lastActivity = DateTime.now();
    return true;
  }
  await cancel('m.timeout');
  return false;
}