mute notifications in muted threads #119
Loading…
Reference in a new issue
No description provided.
Delete branch "mute-notifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This allows to mute notifications in threads which are muted. Users can select which notifications they want to mute for each thread.
This aims to fix #12.
I'll probably be able to test this friday or saturday.
Just so you know I've not started testing yet so maybe wait a bit. It is still work in progress, I think I'll refactor a bit since some of these commits were originally quite old, for example refactor
noteNotificationTypes
to be in foundkey-js.322f2d7978
to5bebe543bb
Testing this I get an error when trying to run migrations:
It seems the problem is because the
foundkey-js
module does not have file extensions in the import statements. I made the following change and got a different error message (similar about not being able to findconsts
):I'm not sure if this should be fixed in the backend module by some setting or if we should add all the filename extensions in
foundkey-js
since others might experience this as well.I think it should be addressed in foundkey-js itself as it is supposed to use file extensions in imports anyways as an ESM module, we really only got away without those so far since the client stuff didn't seem to need that.
Should be fixed now in
106c643f85
.Probably also worth adding in
674f91109f
for completeness.cbf752d9b4
to8ca5048981
8ca5048981
to95b51a4283
95b51a4283
tod682695816
WIP: mute notifications in muted threadsto mute notifications in muted threadsTested it a bit and it seems to be working.
@ -71,0 +78,4 @@
const { includingTypes: value } = res;
let mutingNotificationTypes: string[] | undefined;
if (value != null) {
mutingNotificationTypes = misskey.noteNotificationTypes.filter(x => !value.includes(x))
These should be updated to
foundkey
instead ofmisskey
, otherwise this error happens when I try to mute a thread:Yeah did that but apparently forgot to push after testing... 😅
d682695816
to48fda127ca
Seems to be working for me now.