Compare commits
6 commits
feb3d97af5
...
fb3b19a27f
| Author | SHA1 | Date | |
|---|---|---|---|
|
fb3b19a27f |
|||
|
bd1d5ea745 |
|||
|
1ca802c78b |
|||
|
7b9eda2d36 |
|||
|
63eb001c09 |
|||
|
00c3503c1f |
6 changed files with 35 additions and 20 deletions
11
DEVELOPMENT.md
Normal file
11
DEVELOPMENT.md
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
## 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
|
||||||
|
```
|
||||||
|
|
@ -53,7 +53,7 @@ A simple and user-friendly Matrix client made with Flutter and a Gomuks backend.
|
||||||
- [x] HTML/Markdown
|
- [x] HTML/Markdown
|
||||||
- [x] Replies
|
- [x] Replies
|
||||||
- [x] Choose ping on/off
|
- [x] Choose ping on/off
|
||||||
- [ ] Per message profiles
|
- [x] Per message profiles
|
||||||
- [ ] Attachments
|
- [ ] Attachments
|
||||||
- [ ] Commands with [MSC4391](https://github.com/matrix-org/matrix-spec-proposals/pull/4391)
|
- [ ] Commands with [MSC4391](https://github.com/matrix-org/matrix-spec-proposals/pull/4391)
|
||||||
- [x] Mentions
|
- [x] Mentions
|
||||||
|
|
@ -120,6 +120,9 @@ A simple and user-friendly Matrix client made with Flutter and a Gomuks backend.
|
||||||
- [ ] Align your message bubbles to left or right
|
- [ ] Align your message bubbles to left or right
|
||||||
- [ ] Show media by default
|
- [ ] Show media by default
|
||||||
- [ ] Dynamic Theming
|
- [ ] Dynamic Theming
|
||||||
|
- [ ] Personas
|
||||||
|
- [ ] Setting per-message profiles for users (MSC4461)
|
||||||
|
- [ ] Explain how to send messages using a certain PMP
|
||||||
- [ ] Devices
|
- [ ] Devices
|
||||||
- [ ] Viewing devices
|
- [ ] Viewing devices
|
||||||
- [ ] Verifying devices
|
- [ ] Verifying devices
|
||||||
|
|
@ -218,6 +221,8 @@ Run the app:
|
||||||
flutter run
|
flutter run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Development instructions can be found in [DEVELOPMENT.md](./DEVELOPMENT.md).
|
||||||
|
|
||||||
## Community
|
## Community
|
||||||
|
|
||||||
Join the [Nexus Client Matrix Room](https://matrix.to/#/#nexus:federated.nexus) for questions or help with developing or using Nexus Client.
|
Join the [Nexus Client Matrix Room](https://matrix.to/#/#nexus:federated.nexus) for questions or help with developing or using Nexus Client.
|
||||||
|
|
|
||||||
2
gomuks
2
gomuks
|
|
@ -1 +1 @@
|
||||||
Subproject commit daa0ba028e7d89ba9fc7580fc8099348e6145cb3
|
Subproject commit fbe6fdbaabeaae46fb4c03e0d18260941f235d49
|
||||||
|
|
@ -62,12 +62,6 @@ class ChatBox extends HookConsumerWidget {
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
);
|
);
|
||||||
|
|
||||||
final canSendMessages = ref.watch(
|
|
||||||
PowerLevelController.provider(
|
|
||||||
PowerLevelConfig(eventType: "m.room.message"),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
return Positioned(
|
return Positioned(
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|
@ -92,7 +86,12 @@ class ChatBox extends HookConsumerWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: canSendMessages
|
children:
|
||||||
|
ref.watch(
|
||||||
|
PowerLevelController.provider(
|
||||||
|
PowerLevelConfig(eventType: "m.room.message"),
|
||||||
|
),
|
||||||
|
)
|
||||||
? [
|
? [
|
||||||
EmojiPickerButton(
|
EmojiPickerButton(
|
||||||
context: context,
|
context: context,
|
||||||
|
|
@ -101,7 +100,6 @@ class ChatBox extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
PopupMenuButton(
|
PopupMenuButton(
|
||||||
tooltip: "Add media",
|
tooltip: "Add media",
|
||||||
enabled: canSendMessages,
|
|
||||||
itemBuilder: (context) => [
|
itemBuilder: (context) => [
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
|
|
@ -145,7 +143,6 @@ class ChatBox extends HookConsumerWidget {
|
||||||
"#": style,
|
"#": style,
|
||||||
},
|
},
|
||||||
builder: (context, key) => TextFormField(
|
builder: (context, key) => TextFormField(
|
||||||
enabled: canSendMessages,
|
|
||||||
maxLines: 12,
|
maxLines: 12,
|
||||||
minLines: 1,
|
minLines: 1,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
|
@ -164,7 +161,7 @@ class ChatBox extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: !canSendMessages ? null : send,
|
onPressed: send,
|
||||||
icon: Icon(Icons.send),
|
icon: Icon(Icons.send),
|
||||||
tooltip: "Send message",
|
tooltip: "Send message",
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -365,13 +365,15 @@ class RoomChat extends HookConsumerWidget {
|
||||||
text, {
|
text, {
|
||||||
required shouldMention,
|
required shouldMention,
|
||||||
required tags,
|
required tags,
|
||||||
}) => notifier.send(
|
}) => notifier
|
||||||
|
.send(
|
||||||
text,
|
text,
|
||||||
tags: tags,
|
tags: tags,
|
||||||
relationType: relationType.value,
|
relationType: relationType.value,
|
||||||
shouldMention: shouldMention,
|
shouldMention: shouldMention,
|
||||||
relation: relatedMessage.value,
|
relation: relatedMessage.value,
|
||||||
),
|
)
|
||||||
|
.onError(showError),
|
||||||
relationType: relationType.value,
|
relationType: relationType.value,
|
||||||
relatedMessage: relatedMessage.value,
|
relatedMessage: relatedMessage.value,
|
||||||
onDismiss: () => relatedMessage.value = null,
|
onDismiss: () => relatedMessage.value = null,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ buildGoModule (finalAttrs: {
|
||||||
|
|
||||||
src = "${src}/gomuks";
|
src = "${src}/gomuks";
|
||||||
|
|
||||||
vendorHash = "sha256-zBDfBZqUoHIfZ0AajZEvSBbskjpFB7yIsomt0KYDo7Y=";
|
vendorHash = "sha256-9FsZkE8JmFDQyigQAaFn7i2OsH6Q8yFigPFt/l2FIoU=";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue