mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
5858: Factorise some code according to PR comments
This commit is contained in:
+2
-6
@@ -33,14 +33,12 @@ extension MXEventAssetType {
|
||||
func locationSharingCoordinateType() -> LocationSharingCoordinateType {
|
||||
let coordinateType: LocationSharingCoordinateType
|
||||
switch self {
|
||||
case .user:
|
||||
case .user, .generic:
|
||||
coordinateType = .user
|
||||
case .pin:
|
||||
coordinateType = .pin
|
||||
case .generic:
|
||||
coordinateType = .generic
|
||||
@unknown default:
|
||||
coordinateType = .generic
|
||||
coordinateType = .user
|
||||
}
|
||||
return coordinateType
|
||||
}
|
||||
@@ -54,8 +52,6 @@ extension LocationSharingCoordinateType {
|
||||
eventAssetType = .user
|
||||
case .pin:
|
||||
eventAssetType = .pin
|
||||
case .generic:
|
||||
eventAssetType = .generic
|
||||
}
|
||||
return eventAssetType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user