mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Last Owner should edit admins, and not leave when is last (#4372)
This commit is contained in:
@@ -211,7 +211,7 @@ extension AnalyticsService {
|
||||
}
|
||||
|
||||
/// Track a room moderation action.
|
||||
func trackRoomModeration(action: AnalyticsEvent.RoomModeration.Action, role: RoomMemberDetails.Role?) {
|
||||
func trackRoomModeration(action: AnalyticsEvent.RoomModeration.Action, role: RoomRole?) {
|
||||
let role = role.map(AnalyticsEvent.RoomModeration.Role.init)
|
||||
capture(event: AnalyticsEvent.RoomModeration(action: action, role: role))
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import AnalyticsEvents
|
||||
|
||||
extension AnalyticsEvent.RoomModeration.Role {
|
||||
init(role: RoomMemberDetails.Role) {
|
||||
init(role: RoomRole) {
|
||||
switch role {
|
||||
case .administrator, .creator, .owner:
|
||||
// This probably needs to be updates
|
||||
|
||||
Reference in New Issue
Block a user