Let internal users copy subscriber ID

This commit is contained in:
Evan Hahn 2023-01-11 15:05:16 -06:00 committed by GitHub
parent f2c218edca
commit 28a52397d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,8 +169,10 @@ class InternalSettingsViewController: OWSTableViewController2 {
infoSection.add(.copyableItem(label: "Region Code", value: Locale.current.regionCode?.nilIfEmpty))
infoSection.add(.copyableItem(label: "Currency Code", value: Locale.current.currencyCode?.nilIfEmpty))
if let subscriberID = subscriberID {
infoSection.add(.label(withText: "subscriberID \(subscriberID.asBase64Url)"))
if let subscriberID {
// This empty label works around a layout bug where the label is unreadable.
// We should fix that bug but this works for now, as it's just for internal settings.
infoSection.add(.copyableItem(label: "", value: "Subscriber ID: \(subscriberID.asBase64Url)"))
}
contents.addSection(infoSection)