* fix: resolve typecast error

* chore: fix add to stream after close error
This commit is contained in:
ggurdin 2025-05-16 13:57:37 -04:00 committed by GitHub
parent 8289a33c2d
commit e01166cf14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -708,7 +708,9 @@ class ChatController extends State<ChatPageWithRoom>
}
void _onRouteChanged() {
stopMediaStream.add(null);
if (!stopMediaStream.isClosed) {
stopMediaStream.add(null);
}
MatrixState.pAnyState.closeAllOverlays();
}

View file

@ -26,7 +26,7 @@ class PracticeRecordRepo {
}
static void clean() {
final Iterable<String> keys = _storage.getKeys();
final keys = _storage.getKeys();
if (keys.length > 300) {
final entries = keys
.map((key) {

View file

@ -48,7 +48,7 @@ class PracticeSelectionRepo {
}
static void clean() {
final Iterable<String> keys = _storage.getKeys();
final keys = _storage.getKeys();
if (keys.length > 300) {
final entries = keys
.map((key) => _parsePracticeSelection(key))