File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import 'package:fluffychat/pangea/models/pangea_message_event.dart';
24
24
import 'package:fluffychat/pangea/models/student_analytics_summary_model.dart' ;
25
25
import 'package:fluffychat/pangea/utils/error_handler.dart' ;
26
26
import 'package:fluffychat/pangea/utils/firebase_analytics.dart' ;
27
- import 'package:fluffychat/pangea/utils/instructions.dart' ;
28
27
import 'package:fluffychat/pangea/utils/report_message.dart' ;
29
28
import 'package:fluffychat/pangea/widgets/chat/message_toolbar.dart' ;
30
29
import 'package:fluffychat/pangea/widgets/igc/pangea_text_controller.dart' ;
@@ -349,18 +348,6 @@ class ChatController extends State<ChatPageWithRoom>
349
348
loadTimelineFuture = _getTimeline ();
350
349
try {
351
350
await loadTimelineFuture;
352
- // #Pangea
353
- final String ? targetId =
354
- timeline? .events.firstWhereOrNull ((e) => e.isVisibleInGui)? .eventId;
355
- if (targetId != null ) {
356
- choreographer.pangeaController.instructions.show (
357
- context,
358
- InstructionsEnum .clickMessage,
359
- targetId,
360
- true ,
361
- );
362
- }
363
- // Pangea#
364
351
final fullyRead = room.fullyRead;
365
352
if (fullyRead.isEmpty) return ;
366
353
if (timeline! .events.any ((event) => event.eventId == fullyRead)) {
Original file line number Diff line number Diff line change @@ -116,6 +116,13 @@ class PangeaRichTextState extends State<PangeaRichText> {
116
116
InstructionsEnum .blurMeansTranslate,
117
117
widget.pangeaMessageEvent.eventId,
118
118
);
119
+ } else {
120
+ pangeaController.instructions.show (
121
+ context,
122
+ InstructionsEnum .clickMessage,
123
+ widget.pangeaMessageEvent.eventId,
124
+ true ,
125
+ );
119
126
}
120
127
121
128
//TODO - take out of build function of every message
You can’t perform that action at this time.
0 commit comments