From bcff186b1069bd7d25cd5ac5d41f9f94b41a8f18 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 6 Sep 2017 16:08:03 -0700 Subject: [PATCH] Add self to MMS groups when migrating Fixes #6925 // FREEBIE --- src/org/thoughtcrime/securesms/database/DatabaseFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java index bfe02605cf..811203d17b 100644 --- a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java +++ b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java @@ -1228,6 +1228,8 @@ public class DatabaseFactory { members.add(DelimiterUtil.escape(DelimiterUtil.unescape(address, ' '), ',')); } + members.add(DelimiterUtil.escape(TextSecurePreferences.getLocalNumber(context), ',')); + String encodedGroupId = "__signal_mms_group__!" + Hex.toStringCondensed(groupId); ContentValues groupValues = new ContentValues(); ContentValues threadValues = new ContentValues();