public ConfirmIdentityDialog(MessageRecord record)
        {
            this.InitializeComponent();
            this._messageRecord = record;

            if (record.MismatchedIdentities == null)
            {
                CancelCommand.Execute(null);
            }

            if (record.MismatchedIdentities != null)
            {
                mismatch = record.MismatchedIdentities[0];
            }
        }
        private void processPendingMessageRecords(long threadId, IdentityKeyMismatch mismatch)
        {
            var messageDatabase  = DatabaseFactory.getMessageDatabase();
            var conflictMessages = messageDatabase.getIdentityConflictMessagesForThread(threadId);


            foreach (var record in conflictMessages)
            {
                foreach (var recordMismatch in record.MismatchedIdentities)
                {
                    Log.Debug($"This: {mismatch.IdentityKey.getFingerprint()} That:{recordMismatch.IdentityKey.getFingerprint()}");
                    if (mismatch.Equals(recordMismatch))
                    {
                        processMessageRecord(record);
                    }
                }
            }
        }