monal-im / Monal

Monal for XMPP (iOS and macOS)
https://monal-im.org
Other
498 stars 102 forks source link

[Feature]: Allow custom sounds per sender #991

Open tmolitor-stud-tu opened 8 months ago

tmolitor-stud-tu commented 8 months ago

Precondition

Cross-checked related issues?

Describe your feature

Rewrite the current sound picker using SwiftUI.

The user should be able to pick different sounds for different senders, just like the SwiftUI implementation of the background image allows different images for different senders.

guodong323 commented 6 months ago

I am eager to participate in Monal's Google Summer of Code 2024 project this year. To prepare adequately, Could you please assign me to tasks related to the Monal project? I am committed to delivering my best and will adhere to all guidelines and requirements.

tmolitor-stud-tu commented 6 months ago

For all interested in participating in GSOC, I wrote a quick "how to" checklist over at our wiki: https://github.com/monal-im/Monal/wiki/GSOC-2024-Guidline

guodong323 commented 6 months ago

MLSoundsTableViewController: Implement the SoundsSettingView.swift using List in SwiftUI.

In ContactDetails.swift, add a new NavigationLink below the Text("Change Chat Background") that includes a Text("Change Chat Sound") and navigates to SoundsSettingView.swift.

Logic section:

In SoundsSettingView.swift, use AVAudioPlayer to play the sound corresponding to the selected index.

When a sound is selected, save the corresponding sound to UserDefaults, and Key is user's contactJid + "AlertSoundFile"

tmolitor-stud-tu commented 5 months ago

@guodong323 does closing your PR mean you don't want to work on this anymore or do you want to create a fresh PR instead?