updateSessionName method

Future<void> updateSessionName(
  1. String sessionId,
  2. String newName
)

Implementation

Future<void> updateSessionName(String sessionId, String newName) async {
  await ApiDatabaseService().updateSessionName(sessionId, newName);
  // Note: since the session list screen uses a FutureBuilder fetching from DB,
  // it will re-read the updated name when refreshed.
}