mirror of
https://github.com/mollyim/mollyim-insider-android.git
synced 2025-05-13 05:40:53 +01:00
parent
a2dfd4fd83
commit
dbcc399e3a
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@ public class DeleteAccountViewModel extends ViewModel {
|
|||
number.setCountryCode(countryCode);
|
||||
number.setNationalNumber(nationalNumber);
|
||||
|
||||
if (PhoneNumberUtil.getInstance().isNumberMatch(number, Recipient.self().requireE164()) == PhoneNumberUtil.MatchType.EXACT_MATCH) {
|
||||
final PhoneNumberUtil.MatchType matchType = PhoneNumberUtil.getInstance().isNumberMatch(number, Recipient.self().requireE164());
|
||||
if (matchType == PhoneNumberUtil.MatchType.EXACT_MATCH || matchType == PhoneNumberUtil.MatchType.SHORT_NSN_MATCH || matchType == PhoneNumberUtil.MatchType.NSN_MATCH) {
|
||||
events.setValue(DeleteAccountEvent.ConfirmDeletion.INSTANCE);
|
||||
} else {
|
||||
events.setValue(DeleteAccountEvent.NotAMatch.INSTANCE);
|
||||
|
|
Loading…
Reference in a new issue