some fixes
This commit is contained in:
parent
39b9663bb7
commit
20be3b79ef
2 changed files with 13 additions and 16 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:fluffychat/pangea/constants/model_keys.dart';
|
||||
import 'package:fluffychat/pangea/constants/pangea_message_types.dart';
|
||||
|
|
@ -8,7 +6,6 @@ import 'package:fluffychat/pangea/models/choreo_record.dart';
|
|||
import 'package:fluffychat/pangea/models/message_data_models.dart';
|
||||
import 'package:fluffychat/pangea/models/pangea_representation_event.dart';
|
||||
import 'package:fluffychat/pangea/utils/bot_name.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
|
|
@ -189,9 +186,9 @@ class PangeaMessageEvent {
|
|||
RepresentationEvent? rep = representationByLanguage(langCode);
|
||||
|
||||
//if event is less than 1 minute old, then print new event
|
||||
if (isNew) {
|
||||
debugger(when: kDebugMode);
|
||||
}
|
||||
// if (isNew) {
|
||||
// debugger(when: kDebugMode);
|
||||
// }
|
||||
|
||||
while ((isNew || eventId.contains("web")) && tries < 20) {
|
||||
if (rep != null) return rep;
|
||||
|
|
|
|||
|
|
@ -61,11 +61,11 @@ class RepresentationEvent {
|
|||
if (_tokens != null) return _tokens!.tokens;
|
||||
|
||||
if (_event == null) {
|
||||
debugger(when: kDebugMode);
|
||||
ErrorHandler.logError(
|
||||
m: '_event and _tokens both null',
|
||||
s: StackTrace.current,
|
||||
);
|
||||
// debugger(when: kDebugMode);
|
||||
// ErrorHandler.logError(
|
||||
// m: '_event and _tokens both null',
|
||||
// s: StackTrace.current,
|
||||
// );
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -101,11 +101,11 @@ class RepresentationEvent {
|
|||
if (tokens != null) return tokens!;
|
||||
|
||||
if (_event == null) {
|
||||
debugger(when: kDebugMode);
|
||||
ErrorHandler.logError(
|
||||
m: '_event and _tokens both null',
|
||||
s: StackTrace.current,
|
||||
);
|
||||
// debugger(when: kDebugMode);
|
||||
// ErrorHandler.logError(
|
||||
// m: '_event and _tokens both null',
|
||||
// s: StackTrace.current,
|
||||
// );
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue