mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
reset name after device transfer of community and ask for new name
This commit is contained in:
@@ -18,6 +18,7 @@ import androidx.appcompat.app.AlertDialog;
|
||||
import org.thoughtcrime.securesms.ApplicationPreferencesActivity;
|
||||
import org.thoughtcrime.securesms.BaseActionBarActivity;
|
||||
import org.thoughtcrime.securesms.ConversationListActivity;
|
||||
import org.thoughtcrime.securesms.CreateProfileActivity;
|
||||
import org.thoughtcrime.securesms.LogViewActivity;
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.connect.DcHelper;
|
||||
@@ -182,7 +183,14 @@ public class BackupTransferActivity extends BaseActionBarActivity {
|
||||
notificationControllerClosed = true;
|
||||
|
||||
if (transferMode == TransferMode.RECEIVER_SCAN_QR && transferState == TransferState.TRANSFER_SUCCESS) {
|
||||
startActivity(new Intent(getApplicationContext(), ConversationListActivity.class));
|
||||
if (DcHelper.getContext(this).isCommunity()) {
|
||||
DcHelper.getContext(this).setCommunityUser(null);
|
||||
Intent intent = new Intent(getApplicationContext(), CreateProfileActivity.class);
|
||||
intent.putExtra(CreateProfileActivity.FROM_WELCOME, true);
|
||||
startActivity(intent);
|
||||
} else {
|
||||
startActivity(new Intent(getApplicationContext(), ConversationListActivity.class));
|
||||
}
|
||||
} else if (transferMode == TransferMode.SENDER_SHOW_QR) {
|
||||
// restart the activities that were removed when BackupTransferActivity was started at (**2)
|
||||
// (we removed the activity backstack as otherwise a tap on the Delta Chat icon on the home screen would
|
||||
|
||||
Reference in New Issue
Block a user