mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Settings discovery: Display human readable phone numbers.
This commit is contained in:
@@ -114,7 +114,19 @@ private enum DiscoverySectionRows {
|
||||
case .threePid(let threePid):
|
||||
if let detailCell: MXKTableViewCell = self.cellType(at: row) {
|
||||
detailCell.accessoryType = .disclosureIndicator
|
||||
detailCell.textLabel?.text = threePid.address
|
||||
|
||||
let formattedThreePid: String?
|
||||
|
||||
switch threePid.medium {
|
||||
case .email:
|
||||
formattedThreePid = threePid.address
|
||||
case .msisdn:
|
||||
formattedThreePid = MXKTools.readableMSISDN(threePid.address)
|
||||
default:
|
||||
formattedThreePid = nil
|
||||
}
|
||||
|
||||
detailCell.textLabel?.text = formattedThreePid
|
||||
detailCell.isUserInteractionEnabled = enableInteraction
|
||||
cell = detailCell
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user