mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 13:48:26 +00:00
Clear secondary devices
This commit is contained in:
parent
6efef1d148
commit
e1d17ae831
@ -182,6 +182,10 @@ class HomeActivity : PassphraseRequiredActionBarActivity, ConversationClickListe
|
||||
}
|
||||
this.broadcastReceiver = broadcastReceiver
|
||||
LocalBroadcastManager.getInstance(this).registerReceiver(broadcastReceiver, IntentFilter("blockedContactsChanged"))
|
||||
// Clear all data if this is a secondary device
|
||||
if (TextSecurePreferences.getMasterHexEncodedPublicKey(this) != null) {
|
||||
ApplicationContext.getInstance(this).clearData()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user