fix(presence): hide cli sessions; use numeric mac build
This commit is contained in:
1 parent
c417517f43
commit
7dab927260
5 files changed
+71
-17
No files matched your search
@@ -70,7 +70,10 @@ final class PresenceReporter {
|
||||
private static func appVersionString() -> String {
|
||||
let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "dev"
|
||||
if let build = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String {
|
||||
return "\(version) (\(build))"
|
||||
let trimmed = build.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
if !trimmed.isEmpty, trimmed != version {
|
||||
return "\(version) (\(trimmed))"
|
||||
}
|
||||
}
|
||||
return version
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user