diff --git a/assets/device-messages/green-checkmark.jpg b/assets/device-messages/green-checkmark.jpg
new file mode 100644
index 000000000..82a367d61
Binary files /dev/null and b/assets/device-messages/green-checkmark.jpg differ
diff --git a/res/values/strings.xml b/res/values/strings.xml
index e664d8503..5cec4d466 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1100,8 +1100,7 @@
+ What\'s new:\n\nπ one-to-one chats guarantee end-to-end encryption for introduced contacts now\n\nπ for everyone\'s simplicity, we mark these contacts and 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
- 1.38 is out:\n\nπ Removed upper size limit of attachments\n\nποΈ PNG images (screenshots!) are now compressed as well\n\nβ¨οΈ For Devs: Better apps for chats with sendToChat() and importFiles() (What is Webxdc? β https://webxdc.org)\n\nβ¦ and more at %1$s
-
- 1.38 is out:\n\nπΌπ Ever searching for an image and could not remember the chat? Then the \"All Media\" button is yours!\n\nπ§Ή \"Clear Chat\" from the profiles\n\nπ Removed upper size limit of attachments\n\nποΈ PNG images (screenshots!) are now compressed as well\n\nβ¦ and more at %1$s
+ 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
diff --git a/src/org/thoughtcrime/securesms/ConversationListActivity.java b/src/org/thoughtcrime/securesms/ConversationListActivity.java
index 6c3fd77f8..5f10a6135 100644
--- a/src/org/thoughtcrime/securesms/ConversationListActivity.java
+++ b/src/org/thoughtcrime/securesms/ConversationListActivity.java
@@ -68,6 +68,10 @@ import org.thoughtcrime.securesms.util.DynamicNoActionBarTheme;
import org.thoughtcrime.securesms.util.DynamicTheme;
import org.thoughtcrime.securesms.util.Prefs;
import org.thoughtcrime.securesms.util.SendRelayedMessageUtil;
+import org.thoughtcrime.securesms.util.Util;
+
+import java.io.FileOutputStream;
+import java.io.InputStream;
public class ConversationListActivity extends PassphraseRequiredActionBarActivity
implements ConversationListFragment.ConversationSelectedListener
@@ -96,10 +100,23 @@ public class ConversationListActivity extends PassphraseRequiredActionBarActivit
protected void onCreate(Bundle icicle, boolean ready) {
// update messages - for new messages, do not reuse or modify strings but create new ones.
// it is not needed to keep all past update messages, however, when deleted, also the strings should be deleted.
- //DcContext dcContext = DcHelper.getContext(this);
- //DcMsg msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT);
- //msg.setText(getString(R.string.update_1_38_android, "https://get.delta.chat/#changelogs"));
- //dcContext.addDeviceMsg("update_1_38c_android", msg);
+ try {
+ DcContext dcContext = DcHelper.getContext(this);
+ final String deviceMsgId = "update_1_42ai_android";
+ if (!dcContext.wasDeviceMsgEverAdded(deviceMsgId)) {
+ DcMsg msg = new DcMsg(dcContext, DcMsg.DC_MSG_IMAGE);
+
+ 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"));
+ dcContext.addDeviceMsg(deviceMsgId, msg);
+ }
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
// create view
setContentView(R.layout.conversation_list_activity);