mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-02-16 21:52:38 +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"]),
|
virtualDirectory: nullToEmpty(map["virtual_directory"]),
|
||||||
following: map["following"],
|
following: map["following"],
|
||||||
timeCreate: map["time_create"],
|
timeCreate: map["time_create"],
|
||||||
description: map["description"],
|
description: nullToEmpty(map["description"]),
|
||||||
url: nullToEmpty(map["url"]),
|
url: nullToEmpty(map["url"]),
|
||||||
likes: map["number_likes"],
|
likes: map["number_likes"],
|
||||||
userLike: map["is_liking"],
|
userLike: map["is_liking"],
|
||||||
|
@ -10,7 +10,7 @@ import 'group.dart';
|
|||||||
|
|
||||||
class AdvancedGroupInfo extends Group implements LikeElement {
|
class AdvancedGroupInfo extends Group implements LikeElement {
|
||||||
final int timeCreate;
|
final int timeCreate;
|
||||||
final String description;
|
String description;
|
||||||
String url;
|
String url;
|
||||||
int likes;
|
int likes;
|
||||||
bool userLike;
|
bool userLike;
|
||||||
|
@ -121,7 +121,19 @@ class _GroupSettingsScreenState extends SafeState<GroupSettingsScreen> {
|
|||||||
_groupSettings.url = s;
|
_groupSettings.url = s;
|
||||||
_updateSettings();
|
_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…
x
Reference in New Issue
Block a user