Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus
Commit graph nexus/lib/controllers/client.dart
Author SHA1 Message Date
9f0b80072d
pause sync when app is backgrounded 2026-10-19 17:40:57 -04:00
d1724932b2
clean up and improve notifications
Thanks to Gomuks' new handling, we have sender displayname and avatar, and can use android's conversation notifications.

On other platforms, we just append sender name to the body, bolded if possible.

This also improves the logic on when to send notifications, as we drop notifs where `response["notification"]` is null.

We also now correctly set if notifications should play a sound or not, based on `PushNotification.sound`.

`PushNotification.image` handling might come sometime in the future, but it seems hard on Android.
2026-10-18 16:01:37 -04:00
00f22d46b7
slight cleanups 2026-10-16 10:56:55 -04:00
23046f08a9
add support for initializing and resetting crypto identity
Fixes #137
2026-10-16 10:49:04 -04:00
b71a7f0bd6
Show space hierarchies
Fixes #83
2026-10-15 22:34:27 -04:00
ed84410039
add support for creating rooms
Fixes #81
2026-10-15 19:49:04 -04:00
df592b3f38
add better OAuth error
Fixes #88
2026-10-15 18:30:12 -04:00
24e516e6dd
store related events for mentions 2026-10-15 00:44:08 -04:00
d37ec2878b
add invite support
Closes #82
2026-10-15 00:35:38 -04:00
02c486e1b3
make it more clear which methods free the buffer 2026-10-05 10:11:16 -04:00
493776e3dd
clear init complete state on logout 2026-10-03 11:56:17 -04:00
a698cf8c28
small cleanups 2026-09-28 18:20:36 -04:00
389b65ae61 add support for jumping to out-of-context events (#95)
Fixes #84.

Reviewed-on: Nexus/nexus#95
2026-09-26 13:03:16 -04:00
aecfac9533
free base before buffer 2026-09-24 22:20:31 -04:00
c7b89b8e56
small cleanups 2026-09-24 20:59:18 -04:00
721727d48c
small cleanups 2026-09-24 20:50:28 -04:00
ccca02a0bc
Separate out GomuksListenerController from ClientController
Fixes #89
2026-09-24 11:03:16 -04:00
a2791a6717
various small fixups 2026-09-22 15:53:37 -04:00
41806be9bf
More platform-independent approach to managing registered state 2026-09-22 14:34:08 -04:00
0c660a98a7
just grab events out of get_mentions for now 2026-09-22 09:57:10 -04:00
09534a6775
use GomuksConfig 2026-09-22 09:53:00 -04:00
8b7e29ae33
Set device name to "Nexus on $platform"
Fixes #86.
2026-09-19 22:41:13 -04:00
673c5bd894
fix memory leaks
Oops! They were pretty slow, but still adds up. This might fix the bug that was stopping Nexus from working on GraphineOS.
2026-09-19 21:13:03 -04:00
4f3b77f9f3
set env for gomuks
Fixes #62
2026-09-19 18:41:09 -04:00
85bb653980
fix gomuks init on android / ios 2026-09-18 15:39:45 -04:00
23e01c7a0d
Notifications page
Doesn't yet allow for jumping to events
2026-09-11 22:03:42 -04:00
ff9bf3bec4 Push Notifications (#66)
Fixes #35.

Things to do:
- [x] Register with local distributor
- [x] Register with homeserver
- [x] Recieve messages
- [x] Show notifications
- [ ] Notifications page (could come later)

Reviewed-on: Nexus/nexus#66
2026-09-10 15:37:05 -04:00
6e42902322
run GomuksInit on an Isolate
Fixes #70
2026-09-10 15:32:30 -04:00
4314c88d5c
fallback to empty profile if fetch fails 2026-09-09 15:25:10 -04:00
a9993013f5
add rooms to mention chips
Needs handling for event links, plus clickability
2026-08-11 20:34:43 -04:00
620440e2a1
Allow logging into homeservers without discovery working 2026-08-10 22:50:13 -04:00
7bb4d87638 feat: Add iOS platform support (#60)
Co-authored-by: Henry-Hiles <henry@henryhiles.com>
Reviewed-on: Nexus/nexus#60
2026-08-08 16:35:56 -04:00
ae5b6e2b40
bump gomuks, fix profile issues caused by this 2026-08-05 16:28:47 -04:00
f97c5548a3
add invite blocking support plus msc4494 support
To accomplish this I also reworked how account data is stored and added a method to fetch capabilities, and another method to set account data
2026-08-04 21:04:55 -04:00
eca9d3b411
use gomuks for URL previews 2026-07-27 16:01:40 -04:00
fa451621de
use gomuks for downloading media 2026-07-26 23:01:36 -04:00
c4f63d18b5
add support for sending media
Still needs camera support.
2026-07-21 20:19:01 -04:00
7d106ad3a2 OAuth Support (#53)
Rips out the old auth method, adds OAuth support. Fixes #51.

Tested Platforms:
- [x] Linux
    - [x] Flatpak
    - [x] Native (Nix)
- [x] Android
- [ ] Windows
- [ ] MacOS

Reviewed-on: Nexus/nexus#53
2026-07-20 19:46:18 -04:00
7992f0e815
treewide(refactor): rename files to follow the same style 2026-07-18 12:12:54 -04:00
Renamed from lib/controllers/client_controller.dart (Browse further)