public bool updateSynKey(SMSHash hash, byte[] ext, SMSSyncAlgo sync, byte[] key, byte[] iv, string contact) { IMORZEContact cnt; bool bres = false; cnt = m_addressBook.GetContact(contact, true); if (cnt != null) { try { bres = cnt.updateSynKey(hash, ext, sync, key, iv); if (bres == true) { if (string.IsNullOrEmpty(m_addressBook.Save()) == true) { bres = true; } } } catch { bres = false; } } return(bres); }
public void Save() { if (_addressBook != null) { _addressBook.Save(); } else if (_localAddresses.Count > 0) { Open(); _addressBook?.Save(); } }