Sentry (#2825)
* fix: resolve typecast error * chore: fix add to stream after close error
This commit is contained in:
parent
8289a33c2d
commit
e01166cf14
3 changed files with 5 additions and 3 deletions
|
|
@ -708,7 +708,9 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
}
|
||||
|
||||
void _onRouteChanged() {
|
||||
stopMediaStream.add(null);
|
||||
if (!stopMediaStream.isClosed) {
|
||||
stopMediaStream.add(null);
|
||||
}
|
||||
MatrixState.pAnyState.closeAllOverlays();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue