Skip to content

Commit

Permalink
add a concrete hint about the message added to 'Saved Messages'
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Apr 5, 2024
1 parent c4f9c21 commit 341be47
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deltachat-ios/Controller/MapViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ class MapViewController: WebxdcViewController {
let chatId = dcContext.createChatByContactId(contactId: Int(DC_CONTACT_ID_SELF))
let msg = dcContext.newMessage(viewType: DC_MSG_WEBXDC)
msg.setFile(filepath: path.path)
msgId = dcContext.sendMessage(chatId: chatId, message: msg) // TODO: this should be hidden by core somehow
msg.text = "Thanks for trying out the experimental feature 🧪 \"Location streaming\"\n\n"
+ "This message is needed temporarily for development and debugging. "
+ "To see locations, POIs and tracks on the map, "
+ "do not open it here but from \"All Media\" or from chat \"Profiles\".\n\n"
+ "If you want to quit the experimental feature, "
+ "you can disable it at \"Settings / Advanced\" and delete this message."
msgId = dcContext.sendMessage(chatId: chatId, message: msg)
UserDefaults.standard.setValue(msgId, forKey: msgIdConfigKey + String(dcContext.id))
}
}
Expand Down

0 comments on commit 341be47

Please sign in to comment.