Skip to content

Commit

Permalink
improve chat warning and text
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Dec 30, 2024
1 parent ec22343 commit ec6e29e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/specific/ChatLive.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ function ChatLive_StartShared(chat_number, id) {

function ChatLive_checkShared(chat_number, id) {
var theUrl = Main_helix_api + 'shared_chat/session?broadcaster_id=' + ChatLive_selectedChannel_id[chat_number];

BaseXmlHttpGet(theUrl, ChatLive_checkSharedSuccess, noop_fun, chat_number, id, true);
}

Expand Down Expand Up @@ -339,7 +338,7 @@ function ChatLive_updateBannerSuccess(responseText, chat_number, id) {
STR_BR;
}

ChatLive_Warn(STR_IN_SHARED_CHAT + chatWarning, 3000);
ChatLive_Warn(ChatLive_selectedChannel[chat_number] + STR_SPACE_HTML + STR_IN_SHARED_CHAT + chatWarning, 3000);

ChatLive_SharedShowedWarning[chat_number] = true;
}
Expand Down
16 changes: 16 additions & 0 deletions app/specific/PlayEtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3186,6 +3186,22 @@ function Play_MakeControls() {
Main_setItem('disabled_shared', Settings_value.disabled_shared.defaultValue + 1);

this.setLabel();

ChatLive_checkShared(0, Chat_Id[0]);
if (PlayExtra_PicturePicture) {
ChatLive_checkShared(1, Chat_Id[1]);
}

if (Settings_value.show_chatters.defaultValue) {
ChatLive_isShared[0] = false;
ChatLive_isShared[1] = false;

ChatLive_loadChattersCheckTypeRun(0, Chat_Id[0]);

if (PlayExtra_PicturePicture) {
ChatLive_loadChattersCheckTypeRun(1, Chat_Id[1]);
}
}
},
setLabel: function () {
Main_textContent('controls_text_summary_' + this.position, '(' + (Settings_value.disabled_shared.defaultValue ? STR_YES : STR_NO) + ')');
Expand Down

0 comments on commit ec6e29e

Please sign in to comment.