fix: None.get error on change user Emoji
This commit is contained in:
parent
e25abf7e34
commit
c8668bcfe2
@ -29,7 +29,10 @@ trait ChangeUserEmojiCmdMsgHdlr extends RightsManagementTrait {
|
|||||||
msg.header.userId
|
msg.header.userId
|
||||||
)
|
)
|
||||||
|
|
||||||
val initialEmojiState = Users2x.findWithIntId(liveMeeting.users2x, msg.body.userId).get.emoji
|
for {
|
||||||
|
user <- Users2x.findWithIntId(liveMeeting.users2x, msg.body.userId)
|
||||||
|
} yield {
|
||||||
|
val initialEmojiState = user.emoji
|
||||||
val nextEmojiState = msg.body.emoji
|
val nextEmojiState = msg.body.emoji
|
||||||
|
|
||||||
if (isUserSettingOwnEmoji
|
if (isUserSettingOwnEmoji
|
||||||
@ -57,5 +60,6 @@ trait ChangeUserEmojiCmdMsgHdlr extends RightsManagementTrait {
|
|||||||
PermissionCheck.ejectUserForFailedPermission(meetingId, msg.header.userId, reason, outGW, liveMeeting)
|
PermissionCheck.ejectUserForFailedPermission(meetingId, msg.header.userId, reason, outGW, liveMeeting)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user