(mode = currentConferenceAccessMode(), hasConferenceAuth = false)
| 4853 | state.chatHistory = []; |
| 4854 | state.chatHistoryGroups = []; |
| 4855 | resetChatThread(); |
| 4856 | renderChatSources([]); |
| 4857 | renderChatHistory({ sessions: [], groups: [] }); |
| 4858 | showFeedbackToast("success", ui().chat.clearedTitle, ui().chat.clearedDetail(data.deleted || count)); |
| 4859 | } |
| 4860 | |
| 4861 | function startNewChat(options = {}) { |
| 4862 | state.chatSessionId = ""; |
| 4863 | state.chatLoadToken += 1; |
| 4864 | if ($("chatInput")) $("chatInput").value = ""; |
| 4865 | clearChatMentions(); |
| 4866 | window.clearTimeout(state.mentionSearchTimer); |
| 4867 | state.mentionSearchToken += 1; |
| 4868 | if ($("mentionSuggestions")) $("mentionSuggestions").hidden = true; |
| 4869 | resetChatThread(); |
| 4870 | renderChatHistory({ sessions: state.chatHistory, groups: state.chatHistoryGroups }); |
| 4871 | if (!options.silent) { |
| 4872 | showFeedbackToast("success", ui().chat.newChatToastTitle, ui().chat.newChatToastDetail); |
| 4873 | } |
| 4874 | } |
| 4875 | |
| 4876 | function focusCitationSource(index) { |
no test coverage detected