1
0
Fork 0
forked from Nexus/nexus

Compare commits

...

4 commits

Author SHA1 Message Date
632c02a517
update windows tags 2026-06-18 14:52:18 -04:00
355c564123
update gomuks vendorHash 2026-06-18 14:48:37 -04:00
1af957d4a1
bump gomuks 2026-06-18 14:44:56 -04:00
1986e2a627
fixes to creator power level logic 2026-06-17 23:24:25 -04:00
5 changed files with 13 additions and 11 deletions

View file

@ -36,7 +36,7 @@ jobs:
- name: Go build
run: |
cd gomuks/pkg/ffi
go build -tags goolm -o ../../../libgomuks.dll -buildmode=c-shared
go build -tags goolm,sqlite_fts5 -o ../../../libgomuks.dll -buildmode=c-shared
- name: Build with Flutter
run: |

2
gomuks

@ -1 +1 @@
Subproject commit da3b823e1435afd6f2a1ea6c354d9a35c489b624
Subproject commit 819f5d69f068ddedb08fe732f50570e33dd19e0f

View file

@ -55,7 +55,11 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
libFile = buildDir.resolve("${targetArch.name}/$libFileName");
// goheif/dav1d supported on Android would need to fix upstream
final tags = targetOS == OS.android ? "goolm,noheic" : "goolm";
final tags = [
"sqlite_fts5",
"goolm",
if (targetOS == OS.android) "noheic",
].join(",");
print(
"Building Gomuks shared library $libFileName (${targetOS.name}/${targetArch.name}) to ${libFile.path}...",
);

View file

@ -39,13 +39,11 @@ class PowerLevelController extends Notifier<bool> {
);
if (user == null || content is! PowerLevelsContent) return false;
int powerLevelOf(String userId) =>
content.users[userId] ?? content.usersDefault;
// room creators get power level infinite
final userLevel = roomCreators?.contains(user) == true
double powerLevelOf(String userId) => roomCreators?.contains(userId) == true
? double.infinity
: powerLevelOf(user);
: (content.users[userId] ?? content.usersDefault).toDouble();
final userLevel = powerLevelOf(user);
return switch (config) {
EventPowerLevelConfig(:final eventType) =>

View file

@ -11,12 +11,12 @@ buildGoModule (finalAttrs: {
src = "${src}/gomuks";
vendorHash = "sha256-EeGuh73jcK2aKmEJsMaAqQRJMzzHj3s8LrLb/QmorbQ=";
vendorHash = "sha256-/Wvx5WjnlPpQILpNqo9075F3nox0Dm8PfqGgck4CifQ=";
buildPhase = ''
runHook preBuild
go build -buildmode=c-shared -o libgomuks.so -tags goolm,noheic ./pkg/ffi
go build -buildmode=c-shared -o libgomuks.so -tags goolm,noheic,sqlite_fts5 ./pkg/ffi
runHook postBuild
'';