mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Can change group description
This commit is contained in:
parent
971210e7e8
commit
cc08ed0232
@ -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"],
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user