Commit 9b00fd4c by Kim Peace

Fixed to hand over data parameter for update host

parent 22eccd64
......@@ -50,6 +50,16 @@ CollaborationUI.bindDisplayUsersButton = function () {
});
};
CollaborationUI.userListSlideOut = function () {
const w = $(".user_btn").width();
$(".user_btn").removeClass("hide");
$("#overlay_user_list.overlay")
.removeClass("slidein")
.css({ transform: "translateX(" & -w & ")" });
scrollTo(0, 0);
CollaborationUI.bindDisableScroll();
};
CollaborationUI.bindChangeHostButton = function () {
$(".ch_host_btn").click(function () {
const target = $(this).val();
......
......@@ -42,7 +42,7 @@ FermiWebSocketMessageHandler.handleMessagesToSelf = function (data) {
// 自分自身の場合
switch (data.type) {
case "HOST_CHANGE_REQUEST":
FermiWebSocketMessageHandler.hostChangeRequest();
FermiWebSocketMessageHandler.hostChangeRequest(data);
break;
case "PIP_END_REQUEST":
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) {
......@@ -168,8 +168,8 @@ FermiWebSocketMessageHandler.captureRequest = function (data) {
};
// HOST_CHANGE_REQUEST
FermiWebSocketMessageHandler.hostChangeRequest = function () {
FermiWebSocketBridge.requestHostChange();
FermiWebSocketMessageHandler.hostChangeRequest = function (data) {
FermiWebSocketBridge.hostChangeResponse(data);
};
// HOST_CHANGE_RESPONSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment