TF-3871 Fix blue bar displays wrongly who proposed the event counter
This commit is contained in:
@@ -304,6 +304,7 @@ class EmailView extends GetWidget<SingleEmailController> {
|
||||
children: [
|
||||
Obx(() => CalendarEventInformationWidget(
|
||||
calendarEvent: calendarEvent,
|
||||
imagePaths: controller.imagePaths,
|
||||
onOpenComposerAction: controller.openNewComposerAction,
|
||||
onOpenNewTabAction: controller.openNewTabAction,
|
||||
onCalendarEventReplyActionClick: (eventActionType) =>
|
||||
|
||||
+8
-1
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart';
|
||||
@@ -24,6 +25,7 @@ typedef OnOpenComposerAction = void Function(String emailAddress);
|
||||
class CalendarEventInformationWidget extends StatelessWidget {
|
||||
|
||||
final CalendarEvent calendarEvent;
|
||||
final ImagePaths imagePaths;
|
||||
final OnOpenNewTabAction? onOpenNewTabAction;
|
||||
final OnOpenComposerAction? onOpenComposerAction;
|
||||
final OnCalendarEventReplyActionClick onCalendarEventReplyActionClick;
|
||||
@@ -39,6 +41,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
|
||||
const CalendarEventInformationWidget({
|
||||
super.key,
|
||||
required this.calendarEvent,
|
||||
required this.imagePaths,
|
||||
required this.onCalendarEventReplyActionClick,
|
||||
required this.calendarEventReplying,
|
||||
required this.isFreeBusyEnabled,
|
||||
@@ -96,7 +99,11 @@ class CalendarEventInformationWidget extends StatelessWidget {
|
||||
),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: calendarEvent.organizerName,
|
||||
text: calendarEvent.getUserNameEventAction(
|
||||
context: context,
|
||||
imagePaths: imagePaths,
|
||||
listEmailAddressSender: listEmailAddressSender,
|
||||
),
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: CalendarEventInformationWidgetStyles
|
||||
.invitationMessageColor,
|
||||
|
||||
+6
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart';
|
||||
@@ -12,6 +13,8 @@ import '../../../../../fixtures/widget_fixtures.dart';
|
||||
|
||||
void main() {
|
||||
group('CalendarEventInformationWidget::', () {
|
||||
final imagePaths = ImagePaths();
|
||||
|
||||
testWidgets(
|
||||
'Should show warning message\n'
|
||||
'when user is not in the participants\n'
|
||||
@@ -36,6 +39,7 @@ void main() {
|
||||
child: Scaffold(
|
||||
body: CalendarEventInformationWidget(
|
||||
calendarEvent: calendarEvent,
|
||||
imagePaths: imagePaths,
|
||||
onCalendarEventReplyActionClick: (_) {},
|
||||
calendarEventReplying: false,
|
||||
isFreeBusyEnabled: false,
|
||||
@@ -79,6 +83,7 @@ void main() {
|
||||
child: Scaffold(
|
||||
body: CalendarEventInformationWidget(
|
||||
calendarEvent: calendarEvent,
|
||||
imagePaths: imagePaths,
|
||||
onCalendarEventReplyActionClick: (_) {},
|
||||
calendarEventReplying: false,
|
||||
isFreeBusyEnabled: false,
|
||||
@@ -119,6 +124,7 @@ void main() {
|
||||
child: Scaffold(
|
||||
body: CalendarEventInformationWidget(
|
||||
calendarEvent: calendarEvent,
|
||||
imagePaths: imagePaths,
|
||||
onCalendarEventReplyActionClick: (_) {},
|
||||
calendarEventReplying: false,
|
||||
isFreeBusyEnabled: false,
|
||||
|
||||
Reference in New Issue
Block a user