pingCall static method

void pingCall(
  1. ChatId chatId
)

Ensures a call in the provided chatId is considered active the browser's storage.

Implementation

static void pingCall(ChatId chatId) {
  web.window.localStorage.setItem(
    'at_call_$chatId',
    DateTime.now().toString(),
  );
}