Notify level in channel

This commit is contained in:
2024-06-09 00:09:01 +08:00
parent 6acbd1ee9e
commit 0f24ac03f7
12 changed files with 178 additions and 39 deletions

View File

@ -113,7 +113,7 @@ class _ChatMessageInputState extends State<ChatMessageInput> {
Response resp;
if (_editTo != null) {
resp = await client.put(
'/api/channels/${widget.realm}/${widget.channel.alias}/messages/${widget.edit!.id}',
'/api/channels/${widget.realm}/${widget.channel.alias}/messages/${_editTo!.id}',
payload,
);
} else {
@ -171,6 +171,11 @@ class _ChatMessageInputState extends State<ChatMessageInput> {
MaterialBanner(
leading: const FaIcon(FontAwesomeIcons.reply, size: 18),
dividerColor: Colors.transparent,
padding: const EdgeInsets.only(left: 20),
backgroundColor: Theme.of(context)
.colorScheme
.surfaceContainerHighest
.withOpacity(0.5),
content: ChatMessage(
item: _replyTo!,
isContentPreviewing: true,
@ -181,6 +186,11 @@ class _ChatMessageInputState extends State<ChatMessageInput> {
MaterialBanner(
leading: const Icon(Icons.edit),
dividerColor: Colors.transparent,
padding: const EdgeInsets.only(left: 20),
backgroundColor: Theme.of(context)
.colorScheme
.surfaceContainerHighest
.withOpacity(0.5),
content: ChatMessage(
item: _editTo!,
isContentPreviewing: true,