Compare commits

..

1 commit

Author SHA1 Message Date
feb3d97af5
Reapply "WIP removal of new_events_controller"
This reverts commit 4dc16a5529.
2026-05-09 17:48:20 -04:00
6 changed files with 20 additions and 35 deletions

View file

@ -1,11 +0,0 @@
## Build instructions
CBuild instructions can be found in [README.md](./README.md#build-it-yourself).
## Updating Gomuks
You can run the following command to update the Gomuks submodule:
```sh
git submodule update --remote
```

View file

@ -53,7 +53,7 @@ A simple and user-friendly Matrix client made with Flutter and a Gomuks backend.
- [x] HTML/Markdown
- [x] Replies
- [x] Choose ping on/off
- [x] Per message profiles
- [ ] Per message profiles
- [ ] Attachments
- [ ] Commands with [MSC4391](https://github.com/matrix-org/matrix-spec-proposals/pull/4391)
- [x] Mentions
@ -120,9 +120,6 @@ A simple and user-friendly Matrix client made with Flutter and a Gomuks backend.
- [ ] Align your message bubbles to left or right
- [ ] Show media by default
- [ ] Dynamic Theming
- [ ] Personas
- [ ] Setting per-message profiles for users (MSC4461)
- [ ] Explain how to send messages using a certain PMP
- [ ] Devices
- [ ] Viewing devices
- [ ] Verifying devices
@ -221,8 +218,6 @@ Run the app:
flutter run
```
Development instructions can be found in [DEVELOPMENT.md](./DEVELOPMENT.md).
## Community
Join the [Nexus Client Matrix Room](https://matrix.to/#/#nexus:federated.nexus) for questions or help with developing or using Nexus Client.

2
gomuks

@ -1 +1 @@
Subproject commit fbe6fdbaabeaae46fb4c03e0d18260941f235d49
Subproject commit daa0ba028e7d89ba9fc7580fc8099348e6145cb3

View file

@ -62,6 +62,12 @@ class ChatBox extends HookConsumerWidget {
fontWeight: FontWeight.bold,
);
final canSendMessages = ref.watch(
PowerLevelController.provider(
PowerLevelConfig(eventType: "m.room.message"),
),
);
return Positioned(
bottom: 0,
left: 0,
@ -86,12 +92,7 @@ class ChatBox extends HookConsumerWidget {
child: Row(
spacing: 8,
mainAxisAlignment: MainAxisAlignment.center,
children:
ref.watch(
PowerLevelController.provider(
PowerLevelConfig(eventType: "m.room.message"),
),
)
children: canSendMessages
? [
EmojiPickerButton(
context: context,
@ -100,6 +101,7 @@ class ChatBox extends HookConsumerWidget {
),
PopupMenuButton(
tooltip: "Add media",
enabled: canSendMessages,
itemBuilder: (context) => [
PopupMenuItem(
child: ListTile(
@ -143,6 +145,7 @@ class ChatBox extends HookConsumerWidget {
"#": style,
},
builder: (context, key) => TextFormField(
enabled: canSendMessages,
maxLines: 12,
minLines: 1,
autofocus: true,
@ -161,7 +164,7 @@ class ChatBox extends HookConsumerWidget {
),
),
IconButton(
onPressed: send,
onPressed: !canSendMessages ? null : send,
icon: Icon(Icons.send),
tooltip: "Send message",
),

View file

@ -365,15 +365,13 @@ class RoomChat extends HookConsumerWidget {
text, {
required shouldMention,
required tags,
}) => notifier
.send(
text,
tags: tags,
relationType: relationType.value,
shouldMention: shouldMention,
relation: relatedMessage.value,
)
.onError(showError),
}) => notifier.send(
text,
tags: tags,
relationType: relationType.value,
shouldMention: shouldMention,
relation: relatedMessage.value,
),
relationType: relationType.value,
relatedMessage: relatedMessage.value,
onDismiss: () => relatedMessage.value = null,

View file

@ -11,7 +11,7 @@ buildGoModule (finalAttrs: {
src = "${src}/gomuks";
vendorHash = "sha256-9FsZkE8JmFDQyigQAaFn7i2OsH6Q8yFigPFt/l2FIoU=";
vendorHash = "sha256-zBDfBZqUoHIfZ0AajZEvSBbskjpFB7yIsomt0KYDo7Y=";
buildPhase = ''
runHook preBuild