Repository navigation
feat(ios): sounds for sending and receiving messages - #60
Merged
Merged
Conversation
While Maxly is open, sending a message plays a short rising pop and a new message from someone else a soft two-note chime. Both sounds are original, generated for Maxly, and play as system sounds: they follow the silent switch, use the ringer volume and do not interrupt music. - Sent: text, attachment, voice, sticker or poll leaves the composer; an edit stays silent (ChatViewModel.onWillSendMessage). - Incoming: the same IncomingMessageSink as background notifications, only while the app is active and the chat is not muted. - Silent during a call; a burst after reconnecting plays once (SoundThrottle, 0.8 s per sound). - Settings > Notifications and sound: separate toggles, both on by default (InAppSoundSettings). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzJkZ5fMPvUtKq76szzXkB
Swift tests failed to build: #expect decomposes a function call and cannot run a mutating method on its value. The calls go to locals first, as elsewhere in the suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzJkZ5fMPvUtKq76szzXkB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что изменилось
Пока Maxly открыт, при отправке сообщения и при получении нового звучат короткие звуки.
ChatViewModel.onWillSendMessage). Правка сообщения не звучит.IncomingMessageSink, что и фоновые уведомления, но только когда приложение на экране и чат не «без звука» (InAppSoundRules). В свёрнутом приложении по-прежнему звучит уведомление.MaxlyUI/Resources/Sounds.InAppSoundPlayer): молчат при «Бесшумно», громкость берут от звонка, музыку и голосовые не прерывают.SoundThrottle).InAppSoundSettings).Тесты
InAppSoundsTests: входящее звучит только в открытом приложении и не в чате «без звука»; настройки включены по умолчанию и независимы; пачка сообщений звучит один раз.Проверка
Сборка и тесты не запускались: в среде, где делалась правка, нет Xcode. Нужно проверить на устройстве: