android, desktop: reset incognito on profile picker (#4903)

This commit is contained in:
Diogo
2024-09-18 16:16:32 +01:00
committed by GitHub
parent 529921e16a
commit d47ff3597d

View File

@@ -308,6 +308,7 @@ fun ActiveProfilePicker(
switchingProfile.value = true
withApi {
try {
appPreferences.incognito.set(false)
var updatedConn: PendingContactConnection? = null;
if (contactConnection != null) {
@@ -361,6 +362,7 @@ fun ActiveProfilePicker(
switchingProfile.value = true
withApi {
try {
appPreferences.incognito.set(true)
val conn = controller.apiSetConnectionIncognito(rhId, contactConnection.pccConnId, true)
if (conn != null) {
withChats {