1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Can change group description

This commit is contained in:
Pierre HUBERT 2020-05-01 20:30:26 +02:00
parent 971210e7e8
commit cc08ed0232
3 changed files with 15 additions and 3 deletions

View File

@ -257,7 +257,7 @@ class GroupsHelper {
virtualDirectory: nullToEmpty(map["virtual_directory"]),
following: map["following"],
timeCreate: map["time_create"],
description: map["description"],
description: nullToEmpty(map["description"]),
url: nullToEmpty(map["url"]),
likes: map["number_likes"],
userLike: map["is_liking"],

View File

@ -10,7 +10,7 @@ import 'group.dart';
class AdvancedGroupInfo extends Group implements LikeElement {
final int timeCreate;
final String description;
String description;
String url;
int likes;
bool userLike;

View File

@ -121,7 +121,19 @@ class _GroupSettingsScreenState extends SafeState<GroupSettingsScreen> {
_groupSettings.url = s;
_updateSettings();
},
)
),
// Group description
TextEditSettingsTile(
title: tr("Group description (optional)"),
currValue: _groupSettings.description,
maxLines: 3,
maxLength: 255,
allowEmptyValues: true,
onChanged: (s) {
_groupSettings.description = s;
_updateSettings();
}),
],
);
}