chore: don't show toolbar for redacted messages (#1992)

This commit is contained in:
ggurdin 2025-02-28 11:45:25 -05:00 committed by GitHub
parent acb0ced1b0
commit 56b2d132e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -43,7 +43,6 @@ import '../../widgets/matrix.dart';
import 'package:fluffychat/utils/tor_stub.dart'
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
enum PopupMenuAction {
settings,
invite,

View file

@ -732,7 +732,7 @@ class PangeaMessageEvent {
List<PracticeActivityEvent> get practiceActivities =>
l2Code == null ? [] : practiceActivitiesByLangCode(l2Code!);
bool get shouldShowToolbar => !event.isActivityMessage;
bool get shouldShowToolbar => !event.isActivityMessage && !event.redacted;
bool shouldDoActivity({
required PangeaToken? token,