mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
draft a device message
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 71 KiB |
@@ -1103,4 +1103,5 @@
|
||||
<string name="update_1_42_common">What\'s new:\n\n💌 one-to-one chats guarantee end-to-end encryption for contacts with a green checkmark\n\n😌 for everyone\'s simplicity, we also mark these chats with green checkmarks\n\n👥 groups are created automatically with guaranteed end-to-end encryption if possible\n\n🔄 Accept/Blocked, Archived, Pinned, Mute is synced across all your devices</string>
|
||||
<!-- placeholder will be replaced by the URL https://get.delta.chat/#changelogs -->
|
||||
<string name="update_1_42_android">Watch out for more improvements in camera, voice messages, backup-all, screen reader, per-account wallpapers, gallery select-all, webxdc landscape … or read them at %1$s</string>
|
||||
<string name="update_1_44_android">What\'s new:\n\n❤️ Yeah! This was long-awaited: Long tap a message to react\n\n🔗 If you cannot scan QR codes, share them as invite links\n\n🔵 All unread messages of all accounts are counted now\n\n… and TONS of bugfixes … %1$s\n\nHelp improving the app: Use \"Settings / Advanced / Send statistics\" to help devs to optimize better for real-world usage. You can review the data before sending</string>
|
||||
</resources>
|
||||
|
||||
@@ -109,18 +109,18 @@ public class ConversationListActivity extends PassphraseRequiredActionBarActivit
|
||||
// it is not needed to keep all past update messages, however, when deleted, also the strings should be deleted.
|
||||
try {
|
||||
DcContext dcContext = DcHelper.getContext(this);
|
||||
final String deviceMsgId = "update_1_42ai_android";
|
||||
final String deviceMsgId = "update_1_44f_android";
|
||||
if (!dcContext.wasDeviceMsgEverAdded(deviceMsgId)) {
|
||||
DcMsg msg = null;
|
||||
if (!getIntent().getBooleanExtra(FROM_WELCOME, false)) {
|
||||
msg = new DcMsg(dcContext, DcMsg.DC_MSG_IMAGE);
|
||||
msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT);
|
||||
|
||||
InputStream inputStream = getResources().getAssets().open("device-messages/green-checkmark.jpg");
|
||||
String outputFile = DcHelper.getBlobdirFile(dcContext, "green-checkmark", ".jpg");
|
||||
Util.copy(inputStream, new FileOutputStream(outputFile));
|
||||
msg.setFile(outputFile, "image/jpeg");
|
||||
// InputStream inputStream = getResources().getAssets().open("device-messages/green-checkmark.jpg");
|
||||
// String outputFile = DcHelper.getBlobdirFile(dcContext, "green-checkmark", ".jpg");
|
||||
// Util.copy(inputStream, new FileOutputStream(outputFile));
|
||||
// msg.setFile(outputFile, "image/jpeg");
|
||||
|
||||
msg.setText(getString(R.string.update_1_42_common) + "\n\n" + getString(R.string.update_1_42_android, "https://get.delta.chat/#changelogs"));
|
||||
msg.setText(getString(R.string.update_1_44_android, "https://get.delta.chat/#changelogs"));
|
||||
}
|
||||
dcContext.addDeviceMsg(deviceMsgId, msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user