From 34dfe740fcf17923fa66b89c9f5aa675542a7de4 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 22 Jan 2020 15:29:32 +1100 Subject: [PATCH] Clean --- Signal/src/Loki/Components/ConversationTitleView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Signal/src/Loki/Components/ConversationTitleView.swift b/Signal/src/Loki/Components/ConversationTitleView.swift index 2f94bfb65..d79ea4a38 100644 --- a/Signal/src/Loki/Components/ConversationTitleView.swift +++ b/Signal/src/Loki/Components/ConversationTitleView.swift @@ -174,9 +174,13 @@ final class ConversationTitleView : UIView { } else { subtitle.append(NSAttributedString(string: "\(userCount) members")) } + } else if let hexEncodedPublicKey = (self.thread as? TSContactThread)?.contactIdentifier(), ECKeyPair.isValidHexEncodedPublicKey(candidate: hexEncodedPublicKey) { + subtitle.append(NSAttributedString(string: hexEncodedPublicKey)) } else { self.subtitleLabel.isHidden = true } + } else if let hexEncodedPublicKey = (self.thread as? TSContactThread)?.contactIdentifier(), ECKeyPair.isValidHexEncodedPublicKey(candidate: hexEncodedPublicKey) { + subtitle.append(NSAttributedString(string: hexEncodedPublicKey)) } else { self.subtitleLabel.isHidden = true }