fix:修复离开模式下管理可以点击主麦操作问题(改为点击toast提示)
This commit is contained in:
@@ -1004,7 +1004,15 @@ open class BaseRoomFragment<V : IBaseRoomView?, P : BaseRoomPresenter<V>?> :
|
|||||||
(roomInfo.isLeaveMode || AvRoomDataManager.get().isSingleRoom)
|
(roomInfo.isLeaveMode || AvRoomDataManager.get().isSingleRoom)
|
||||||
&& position == -1
|
&& position == -1
|
||||||
) {
|
) {
|
||||||
showUserCardDialog(roomInfo.uid.toString())
|
val currentUid = AuthModel.get().currentUid.toString()
|
||||||
|
if (roomInfo.isLeaveMode && !AvRoomDataManager.get().isSingleRoom && (AvRoomDataManager.get()
|
||||||
|
.isRoomOwner(currentUid) || AvRoomDataManager.get().isRoomAdmin(currentUid)
|
||||||
|
|| SuperAdminUtil.isSuperAdmin())
|
||||||
|
) {
|
||||||
|
SingleToastUtil.showToast("请先关闭离开模式")
|
||||||
|
} else {
|
||||||
|
showUserCardDialog(roomInfo.uid.toString())
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
val roomQueueInfo = AvRoomDataManager.get()
|
val roomQueueInfo = AvRoomDataManager.get()
|
||||||
.getRoomQueueMemberInfoByMicPosition(position)
|
.getRoomQueueMemberInfoByMicPosition(position)
|
||||||
|
Reference in New Issue
Block a user