refactor: Change group description to chat description
This commit is contained in:
parent
d9c5cbea26
commit
0836a5c862
4 changed files with 12 additions and 29 deletions
|
|
@ -199,12 +199,12 @@ class ChatDetailsController extends State<ChatDetails> {
|
|||
final room = Matrix.of(context).client.getRoomById(roomId!)!;
|
||||
final input = await showTextInputDialog(
|
||||
context: context,
|
||||
title: L10n.of(context)!.setGroupDescription,
|
||||
title: L10n.of(context)!.setChatDescription,
|
||||
okLabel: L10n.of(context)!.ok,
|
||||
cancelLabel: L10n.of(context)!.cancel,
|
||||
textFields: [
|
||||
DialogTextField(
|
||||
hintText: L10n.of(context)!.noGroupDescriptionYet,
|
||||
hintText: L10n.of(context)!.noChatDescriptionYet,
|
||||
initialText: room.topic,
|
||||
minLines: 4,
|
||||
maxLines: 8,
|
||||
|
|
@ -219,7 +219,7 @@ class ChatDetailsController extends State<ChatDetails> {
|
|||
if (success.error == null) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(L10n.of(context)!.groupDescriptionHasBeenChanged),
|
||||
content: Text(L10n.of(context)!.chatDescriptionHasBeenChanged),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
if (!room.canChangeStateEvent(EventTypes.RoomTopic))
|
||||
ListTile(
|
||||
title: Text(
|
||||
L10n.of(context)!.groupDescription,
|
||||
L10n.of(context)!.chatDescription,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
|
@ -222,8 +222,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
padding: const EdgeInsets.all(16.0),
|
||||
child: OutlinedButton.icon(
|
||||
onPressed: controller.setTopicAction,
|
||||
label:
|
||||
Text(L10n.of(context)!.setGroupDescription),
|
||||
label: Text(L10n.of(context)!.setChatDescription),
|
||||
icon: const Icon(Icons.edit_outlined),
|
||||
),
|
||||
),
|
||||
|
|
@ -233,7 +232,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
),
|
||||
child: SelectableLinkify(
|
||||
text: room.topic.isEmpty
|
||||
? L10n.of(context)!.noGroupDescriptionYet
|
||||
? L10n.of(context)!.noChatDescriptionYet
|
||||
: room.topic,
|
||||
options: const LinkifyOptions(humanize: false),
|
||||
linkStyle:
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ class PublicRoomBottomSheet extends StatelessWidget {
|
|||
if (profile?.topic?.isNotEmpty ?? false)
|
||||
ListTile(
|
||||
title: Text(
|
||||
L10n.of(context)!.groupDescription,
|
||||
L10n.of(context)!.chatDescription,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue