Merge remote-tracking branch 'origin/feature/image-detail' into feature/image-detail
This commit is contained in:
+2
-1
@@ -61,4 +61,5 @@ doc/api/
|
|||||||
|
|
||||||
fvm
|
fvm
|
||||||
google-services.json
|
google-services.json
|
||||||
example/ios/dist
|
example/ios/dist
|
||||||
|
.vscode/
|
||||||
@@ -149,19 +149,22 @@ class ImageActionsModal extends StatelessWidget {
|
|||||||
}),
|
}),
|
||||||
if (StreamChat.of(context).user.id == message.user.id)
|
if (StreamChat.of(context).user.id == message.user.id)
|
||||||
_buildButton(
|
_buildButton(
|
||||||
context,
|
context,
|
||||||
'Delete',
|
'Delete',
|
||||||
StreamSvgIcon.delete(
|
StreamSvgIcon.delete(
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
color: Colors.black,
|
color: Color(0xffFF3742),
|
||||||
), () {
|
),
|
||||||
Navigator.pop(context);
|
() {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
StreamChat.of(context).client.deleteMessage(
|
Navigator.pop(context);
|
||||||
message,
|
StreamChat.of(context).client.deleteMessage(
|
||||||
StreamChannel.of(context).channel.cid,
|
message,
|
||||||
);
|
StreamChannel.of(context).channel.cid,
|
||||||
}, color: Colors.red),
|
);
|
||||||
|
},
|
||||||
|
color: Color(0xffFF3742),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
).toList(),
|
).toList(),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -621,7 +621,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
await c.create();
|
await c.watch();
|
||||||
|
|
||||||
final message = Message(
|
final message = Message(
|
||||||
text: text,
|
text: text,
|
||||||
|
|||||||
Reference in New Issue
Block a user