-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapt to new saved-messages api #4596
Comments
closing this for a few days until android is done, a few things are still under discussion |
reopend and adapted. recent changes:
|
Some questions:
|
In general: it says forward to saved messages should mark the message as "saved message". Isn't that something core should care about? Doesn't make sense to implement that on each client I would say. I already implemented the "save" in context menu since that is easier than adding the logic into "Forward message", but of course we could do that also. The possibility to "unsave" is only implemented by deleting for now. There is no core function to remove the saved_msg_id in the original message right now? |
since PR deltachat/deltachat-core-rust#5606 we have a new saved-messages-api, allowing to save messages similar as known from whatsapp or telegram. see that PR for reasonings and discussions.
to benefit from the new saved-messages-api on desktop, the following steps are needed:
make
dc_save_msgs()
,dc_msg_get_original_msg_id()
anddc_msg_get_saved_msg_id()
available in jsonrpcin self-chat, for incoming messages, show group avatar, sender name and correct left/right side bubbles and colors, see eg. deltachat/deltachat-android@75e9984 for how to change the condition.
already now, the state is not that bad: messages from others saved eg. on android are shown on desktop on the left side using the correct color already today, only avatar and sender name is missing
when forwarding a message to "Saved Messages" that was not already saved usedc_save_msgs()
edit: updated in discussion: keep forwarding as it is
for every message shown in a chat, check if it was saved 1. if so, show a little bookmark icon beside the date (screenshot). as the bookmark should also be shown in saved messages, you will draw it if original_msg_id() OR saved_msg_id() is true.
add a button to go to original beside each saved message in the self-chat (screenshot)
to get the idea, it makes sense to use iOS or Android 1.54
as the new core is already shipped, there is not a huge urgency to target this issue, no messages saved on iOS/android will be lost or so. but of course, it is a very nice to have adaption, and comparable simple for UI.
Footnotes
at least for the first iteration, we do not want to show saved info messages and thelike in the "Saved Messages" chat; this turned out to be confusing and might also require adaptions on systems other than android (remember: saved messages are synced), cmp. https://github.com/deltachat/deltachat-ios/issues/2567 ↩
The text was updated successfully, but these errors were encountered: