Skip to content

Commit

Permalink
fix: Update groupImage in updateGroupProfile to allow null value & hi…
Browse files Browse the repository at this point in the history
…de edit group info button (#86)

* fix: Update groupImage in updateGroupProfile to allow null value & hide edit group info button

* chore: remove white spaces

---------

Co-authored-by: Gbogboade Ayomide <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
  • Loading branch information
3 people authored Dec 22, 2023
1 parent 782b30c commit cd459e6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/lib/views/group/edit_group_info.screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class _EditGroupInfoScreenState extends ConsumerState<EditGroupInfoScreen> {
chatId: groupInfo!.chatId,
groupName: nameController.text.trim(),
groupImage:
selectedFile != null ? composeImage() : groupInfo!.groupImage!,
selectedFile != null ? composeImage() : groupInfo!.groupImage,
groupDescription: descriptionController.text.trim(),
);

Expand Down
4 changes: 2 additions & 2 deletions example/lib/views/group/group_members_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GroupMembersDialog extends ConsumerWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Align(
/* Align(
alignment: Alignment.centerRight,
child: MaterialButton(
onPressed: () {
Expand All @@ -54,7 +54,7 @@ class GroupMembersDialog extends ConsumerWidget {
],
),
),
),
),*/
TabBar(tabs: [
Tab(text: 'Admin'),
Tab(text: 'Members'),
Expand Down
4 changes: 1 addition & 3 deletions example/lib/views/spaces/search_spaces.screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class _SearchSpacesScreenState extends State<SearchSpacesScreen> {
child: Padding(
padding: EdgeInsets.all(16.0),
child: Column(
children: [

],
children: [],
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/chat/src/send.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Future<MessageWithCID?> send(ChatSendOptions options) async {
}

final sendMessagePayload = await sendMessagePayloadCore(
senderConnectedUser: connectedUser!,
senderConnectedUser: connectedUser,
receiverAddress: computedOptions.to,
senderPgpPrivateKey: computedOptions.pgpPrivateKey,
senderAddress: computedOptions.account,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/chat/src/update_group_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Future<GroupInfoDTO> updateGroupProfile({
required String chatId,
required String groupName,
String? groupDescription,
required String groupImage,
String? groupImage,
dynamic rules,
String? pgpPrivateKey,
}) async {
Expand Down

0 comments on commit cd459e6

Please sign in to comment.