removeMessage method

void removeMessage(
  1. int id
)

Removes the last message from the log for the ReaderChatgptSource.

Implementation

void removeMessage(int id) {
  _database.writeTxnSync(() {
    _database.messageItems.deleteSync(id);
  });
}