-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Affected hardware version
Bangle 2
Your firmware version
2v28.6
The bug
When closing Message UI the music message is saved to flash with other messages.
Then when messages does a "modify" on future musicstate messages from gadgetbridge, it keeps pulling that one music message and giving old artist/album/track info.
Sometimes if GadgetBridge takes a while to send a new musicinfo, you can end up seeing the old music for quite a while.
Note: Just documenting this so you know it's happening and why.
Environment
Android + GadgetBridge
Message UI 0.89
Messages 0.67
Steps to reproduce
- Start playing music on phone
- Open
Message UIwhile music is playing; hit next to get some track info to show. - Close
Message UIwhile music is still playing - Reopen
Message UI - Press next track a few times; track from step 3 will keep showing up
You can also install the Messages Debug and see it repeated there.
Potential fixes
A) in Message UI, filter out the music message during saveToFlash
B) in Messages, add if (event.id !== "music") { when doing a "modify" on messages
} else if (event.t==="modify") {
if (event.id !== "music") {
const old = exports.getMessages().find(m => m.id===event.id);
if (old) event = Object.assign(old, event);
}
}Installed apps
No response
Metadata
Metadata
Assignees
Labels
No labels