Merge pull request #2989 from pangeachat/create-chat-button-edits

Update chat creation buttons to match functionality
This commit is contained in:
ggurdin 2025-06-09 14:30:37 -04:00 committed by GitHub
commit 09e8571fae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 5 deletions

View file

@ -5008,5 +5008,8 @@
"getStartedComplete": "You've completed this section!\nKeep exploring our amazing features by chatting with friends!",
"getStartedFriendsComplete": "Woohoo! You've got friends! 😉",
"getStartedBotChatButton": "Start chatting!",
"getStartedFriendsButton": "Invite a friend"
"getStartedFriendsButton": "Invite a friend",
"groupChat": "Group Chat",
"directMessage": "Direct Message",
"newDirectMessage": "New direct message"
}

View file

@ -71,9 +71,15 @@ class ChatListView extends StatelessWidget {
// Pangea#
? FloatingActionButton.extended(
onPressed: () => context.go('/rooms/newprivatechat'),
icon: const Icon(Icons.add_outlined),
// #Pangea
icon: const Icon(Icons.chat_bubble_outline),
// icon: const Icon(Icons.add_outlined),
// Pangea#
label: Text(
L10n.of(context).chat,
// #Pangea
L10n.of(context).directMessage,
// L10n.of(context).chat,
// Pangea#
overflow: TextOverflow.fade,
),
)

View file

@ -686,7 +686,7 @@ class _SpaceViewState extends State<SpaceView> {
// label: Text(L10n.of(context).group),
onPressed: () =>
context.go("/rooms/newgroup?space=${widget.spaceId}"),
label: Text(L10n.of(context).chat),
label: Text(L10n.of(context).groupChat),
// Pangea#
icon: const Icon(Icons.group_add_outlined),
)

View file

@ -30,7 +30,10 @@ class NewPrivateChatView extends StatelessWidget {
appBar: AppBar(
scrolledUnderElevation: 0,
leading: const Center(child: BackButton()),
title: Text(L10n.of(context).newChat),
// #Pangea
title: Text(L10n.of(context).newDirectMessage),
// title: Text(L10n.of(context).newChat),
// Pangea#
backgroundColor: theme.scaffoldBackgroundColor,
// #Pangea
// actions: [