Merge pull request #167 from pangeachat/welcome-chat-name
shorten name of welcome chats
This commit is contained in:
commit
a23afbd3dd
1 changed files with 2 additions and 1 deletions
|
|
@ -203,8 +203,9 @@ class NewSpaceController extends State<NewSpace> {
|
|||
final newChatRoomId = await Matrix.of(context).client.createGroupChat(
|
||||
enableEncryption: false,
|
||||
preset: sdk.CreateRoomPreset.publicChat,
|
||||
// Welcome chat name is '[space name acronym]: Welcome Chat'
|
||||
groupName:
|
||||
'${nameController.text.trim()}: ${L10n.of(context)!.classWelcomeChat}',
|
||||
'${nameController.text.trim().split(RegExp(r"\s+")).map((s) => s[0]).join()}: ${L10n.of(context)!.classWelcomeChat}',
|
||||
);
|
||||
GoogleAnalytics.createChat(newChatRoomId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue