Monal icon indicating copy to clipboard operation
Monal copied to clipboard

Finish [Feature]: Allow custom sounds per sender #991

Open guodong323 opened this issue 11 months ago • 1 comments

guodong323 avatar Mar 06 '24 20:03 guodong323

One more hint: imlement MLSoundManager.m in such a way that MLContact has a field reflecting the sound settings as properties (BOOL chatSoundEnabled and NSString* chatSoundFilename) and automatically refresh these properties by issuing a kMonalContactRefresh and handle this refresh in handleContactRefresh: like already done for the contact avatar.

Use @StateObject ObservableKVOWrapper<MLContact> instead of plain MLContact in swiftui to automatically react to changes of these properties.

tmolitor-stud-tu avatar Mar 07 '24 00:03 tmolitor-stud-tu

I modify it that user can upload themselves sounds

guodong323 avatar Mar 09 '24 04:03 guodong323

I modify it that user can set different alert sound for different users

guodong323 avatar Mar 13 '24 22:03 guodong323

I reset the file naming rules, but every time before selecting a new ringtone I delete the previous ringtone file, otherwise the app's memory usage will become high every time I save the file, I hope you'll be satisfied with the solution this time!

guodong323 avatar Mar 17 '24 18:03 guodong323