]+>/i;
- ChatLogger.debug('TimeWindowChatItem::renderMessageItem', this.props);
- const defaultAvatarString = name?.toLowerCase().slice(0, 2) || ' ';
- const shouldRenderPrivateMessageReadFeedback =
- isMessageReadFeedbackEnabled &&
- chatId !== CHAT_PUBLIC_ID &&
- isFromMe &&
- lastReadByPartnerMessageTime >= messages[messages.length - 1].time;
- const emphasizedText = messageFromModerator && CHAT_EMPHASIZE_TEXT && chatId === CHAT_PUBLIC_ID;
-
- return (
- this.itemRef = element}
- >
-
-
-
- {defaultAvatarString}
-
-
-
-
-
- {name}
- {isOnline
- ? null
- : (
-
- {`(${intl.formatMessage(intlMessages.offline)})`}
-
- )}
-
-
-
-
- {shouldRenderPrivateMessageReadFeedback
- && (
-
-
-
- )}
-
-
- {messages.map((message) => (
- {
- if (!read) {
- dispatch({
- type: 'last_read_message_timestamp_changed',
- value: {
- chatId,
- timestamp,
- },
- });
- }
- }}
- scrollArea={scrollArea}
- />
- ))}
-
-
-
-
- );
- }
-
- renderStatusItem() {
- const {
- timestamp,
- color,
- intl,
- messages,
- scrollArea,
- chatAreaId,
- messageKey,
- dispatch,
- chatId,
- extra,
- read,
- name,
- messageFromModerator,
- avatar,
- isOnline,
- } = this.props;
-
- const dateTime = new Date(timestamp);
- ChatLogger.debug('TimeWindowChatItem::renderMessageItem', this.props);
- const defaultAvatarString = name?.toLowerCase().slice(0, 2) || ' ';
- const emphasizedTextClass = messageFromModerator && CHAT_EMPHASIZE_TEXT
- && chatId === CHAT_PUBLIC_ID;
-
- return messages ? (
-
-
-
-
- {defaultAvatarString}
-
-
-
-
-
- {name}
- {isOnline
- ? null
- : (
-
- {`(${intl.formatMessage(intlMessages.offline)})`}
-
- )}
-
-
-
-
-
-
- {messages.map((message) => {
- const isSystemMsg = message.id === `SYSTEM_MESSAGE-${CHAT_USER_STATUS_MESSAGE}`;
- return (
- ${intl.formatMessage(intlMessages.away)}`
- : ` ${intl.formatMessage(intlMessages.notAway)}`
- : message.text}
- time={message.time}
- chatAreaId={chatAreaId}
- dispatch={dispatch}
- read={message.read}
- chatUserMessageItem
- handleReadMessage={(time) => {
- if (!read) {
- dispatch({
- type: 'last_read_message_timestamp_changed',
- value: {
- chatId,
- timestamp: time,
- },
- });
- }
- }}
- scrollArea={scrollArea}
- />
- );
- })}
-
-
-
-
- ) : null;
- }
-
- renderPollItem() {
- const {
- timestamp,
- color,
- intl,
- getPollResultString,
- messages,
- extra,
- scrollArea,
- chatAreaId,
- lastReadMessageTime,
- dispatch,
- chatId,
- read,
- } = this.props;
-
- const dateTime = new Date(timestamp);
-
- return messages ? (
-
- { this.item = ref; }}>
-
-
- {}
-
-
-
-
-
- {intl.formatMessage(intlMessages.pollResult)}
-
-
-
-
-
- {
- if (!read) {
- dispatch({
- type: 'last_read_message_timestamp_changed',
- value: {
- chatId,
- timestamp: time,
- },
- });
- }
- }}
- scrollArea={scrollArea}
- color={color}
- />
-
-
-
- ) : null;
- }
-
- renderExportedPresentationItem() {
- const {
- timestamp,
- color,
- intl,
- messages,
- extra,
- scrollArea,
- chatAreaId,
- lastReadMessageTime,
- handleReadMessage,
- dispatch,
- read,
- chatId,
- getExportedPresentationString,
- } = this.props;
-
- const dateTime = new Date(timestamp);
-
- return messages ? (
- { e.stopPropagation(); }}
- >
- { this.item = ref; }}>
-
-
-
-
-
-
-
-
-
-
-
- {
- handleReadMessage(timestamp);
-
- if (!read) {
- dispatch({
- type: 'last_read_message_timestamp_changed',
- value: {
- chatId,
- timestamp,
- },
- });
- }
- }}
- scrollArea={scrollArea}
- color={color}
- />
-
-
-
- ) : null;
- }
-
- render() {
- const {
- systemMessage,
- } = this.props;
- ChatLogger.debug('TimeWindowChatItem::render', { ...this.props });
- if (systemMessage) {
- return this.renderSystemMessage();
- }
-
- return this.renderMessageItem();
- }
-}
-
-TimeWindowChatItem.propTypes = propTypes;
-TimeWindowChatItem.defaultProps = defaultProps;
-
-export default injectIntl(TimeWindowChatItem);
diff --git a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/container.jsx b/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/container.jsx
deleted file mode 100644
index 6e25a936eb..0000000000
--- a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/container.jsx
+++ /dev/null
@@ -1,69 +0,0 @@
-import React, { useContext } from 'react';
-import TimeWindowChatItem from './component';
-import { UsersContext } from '/imports/ui/components/components-data/users-context/context';
-import ChatService from '../../service';
-import { layoutSelect } from '../../../layout/context';
-import PollService from '/imports/ui/components/poll/service';
-import Auth from '/imports/ui/services/auth';
-
-const CHAT_CONFIG = Meteor.settings.public.chat;
-const SYSTEM_CHAT_TYPE = CHAT_CONFIG.type_system;
-const ROLE_MODERATOR = Meteor.settings.public.user.role_moderator;
-
-const TimeWindowChatItemContainer = (props) => {
- const { message, messageId } = props;
-
- const idChatOpen = layoutSelect((i) => i.idChatOpen);
-
- const usingUsersContext = useContext(UsersContext);
- const { users } = usingUsersContext;
- const {
- sender,
- senderName,
- senderRole,
- key,
- timestamp,
- content,
- extra,
- messageValues,
- } = message;
- const messages = content;
-
- const user = (sender === 'SYSTEM') ? {
- name: senderName,
- color: '#01579b',
- avatar: '',
- role: ROLE_MODERATOR,
- loggedOut: false,
- } : users[Auth.meetingID][sender];
- const messageKey = key;
- const handleReadMessage = (tstamp) => ChatService.updateUnreadMessage(tstamp, idChatOpen);
- return (
-
- );
-};
-
-export default TimeWindowChatItemContainer;
diff --git a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/message-chat-item/component.jsx b/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/message-chat-item/component.jsx
deleted file mode 100644
index d85bce85dc..0000000000
--- a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/message-chat-item/component.jsx
+++ /dev/null
@@ -1,189 +0,0 @@
-import React, { PureComponent } from 'react';
-import PropTypes from 'prop-types';
-import { debounce } from '/imports/utils/debounce';
-import fastdom from 'fastdom';
-import { injectIntl } from 'react-intl';
-import ChatLogger from '/imports/ui/components/chat/chat-logger/ChatLogger';
-
-const propTypes = {
- text: PropTypes.string.isRequired,
- time: PropTypes.number.isRequired,
- lastReadMessageTime: PropTypes.number,
- handleReadMessage: PropTypes.func.isRequired,
- scrollArea: PropTypes.instanceOf(Element),
- className: PropTypes.string.isRequired,
-};
-
-const defaultProps = {
- lastReadMessageTime: 0,
- scrollArea: undefined,
-};
-
-const eventsToBeBound = [
- 'scroll',
- 'resize',
-];
-
-const isElementInViewport = (el) => {
- if (!el) return false;
- const rect = el.getBoundingClientRect();
-
- return (
- rect.top >= 0
- // This condition is for large messages that are bigger than client height
- || rect.top + rect.height >= 0
- );
-};
-
-class MessageChatItem extends PureComponent {
- constructor(props) {
- super(props);
-
- this.ticking = false;
-
- this.handleMessageInViewport = debounce(this.handleMessageInViewport.bind(this), 50);
- }
-
- componentDidMount() {
- this.listenToUnreadMessages();
- }
-
- componentDidUpdate(prevProps, prevState) {
- ChatLogger.debug('MessageChatItem::componentDidUpdate::props', { ...this.props }, { ...prevProps });
- ChatLogger.debug('MessageChatItem::componentDidUpdate::state', { ...this.state }, { ...prevState });
- this.listenToUnreadMessages();
- }
-
- componentWillUnmount() {
- // This was added 3 years ago, but never worked. Leaving it around in case someone returns
- // and decides it needs to be fixed like the one in listenToUnreadMessages()
- // if (!lastReadMessageTime > time) {
- // return;
- // }
- ChatLogger.debug('MessageChatItem::componentWillUnmount', this.props);
- this.removeScrollListeners();
- }
-
- addScrollListeners() {
- const {
- scrollArea,
- } = this.props;
-
- if (scrollArea) {
- eventsToBeBound.forEach(
- e => scrollArea.addEventListener(e, this.handleMessageInViewport),
- );
- }
- }
-
- handleMessageInViewport() {
- if (!this.ticking) {
- fastdom.measure(() => {
- const node = this.text;
- const {
- handleReadMessage,
- time,
- read,
- } = this.props;
-
- if (read) {
- this.removeScrollListeners();
- return;
- }
-
- if (isElementInViewport(node)) {
- handleReadMessage(time);
- this.removeScrollListeners();
- }
-
- this.ticking = false;
- });
- }
-
- this.ticking = true;
- }
-
- removeScrollListeners() {
- const {
- scrollArea,
- read,
- } = this.props;
-
- if (scrollArea && !read) {
- eventsToBeBound.forEach(
- e => scrollArea.removeEventListener(e, this.handleMessageInViewport),
- );
- }
- }
-
- // depending on whether the message is in viewport or not,
- // either read it or attach a listener
- listenToUnreadMessages() {
- const {
- handleReadMessage,
- time,
- read,
- } = this.props;
-
- if (read) {
- return;
- }
-
- const node = this.text;
-
- fastdom.measure(() => {
- const {
- read: newRead,
- } = this.props;
- // this function is called after so we need to get the updated lastReadMessageTime
-
- if (newRead) {
- return;
- }
-
- if (isElementInViewport(node)) { // no need to listen, the message is already in viewport
- handleReadMessage(time);
- } else {
- this.addScrollListeners();
- }
- });
- }
-
- render() {
- const {
- text,
- type,
- className,
- isSystemMessage,
- chatUserMessageItem,
- systemMessageType,
- color,
- } = this.props;
- ChatLogger.debug('MessageChatItem::render', this.props);
- if (type === 'poll') {
- return (
- { this.text = ref; }}
- dangerouslySetInnerHTML={{ __html: text }}
- data-test="chatPollMessageText"
- />
- );
- } else {
- return (
-
{ this.text = ref; }}
- dangerouslySetInnerHTML={{ __html: text }}
- data-test={isSystemMessage ? systemMessageType : chatUserMessageItem ? 'chatUserMessageText' : ''}
- />
- );
- }
- }
-}
-
-MessageChatItem.propTypes = propTypes;
-MessageChatItem.defaultProps = defaultProps;
-
-export default injectIntl(MessageChatItem);
diff --git a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/styles.js b/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/styles.js
deleted file mode 100644
index ea92693d29..0000000000
--- a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/styles.js
+++ /dev/null
@@ -1,285 +0,0 @@
-import styled from 'styled-components';
-import {
- borderRadius,
- borderSize,
- chatPollMarginSm,
-} from '/imports/ui/stylesheets/styled-components/general';
-import { lineHeightComputed, fontSizeBase, btnFontWeight } from '/imports/ui/stylesheets/styled-components/typography';
-import {
- systemMessageBackgroundColor,
- systemMessageBorderColor,
- systemMessageFontColor,
- highlightedMessageBackgroundColor,
- highlightedMessageBorderColor,
- colorHeading,
- colorGrayLight,
- palettePlaceholderText,
- colorGrayLighter,
- colorPrimary,
- colorText,
- colorSuccess,
-} from '/imports/ui/stylesheets/styled-components/palette';
-import MessageChatItem from './message-chat-item/component';
-import Icon from '/imports/ui/components/common/icon/component';
-
-const Item = styled.div`
- padding: calc(${lineHeightComputed} / 4) 0 calc(${lineHeightComputed} / 2) 0;
- font-size: ${fontSizeBase};
- pointer-events: auto;
- [dir="rtl"] & {
- direction: rtl;
- }
-`;
-
-const Messages = styled.div`
- > * {
- &:first-child {
- margin-top: calc(${lineHeightComputed} / 4);
- }
- }
-`;
-
-const StatusMessageChatItem = styled(MessageChatItem)`
- background: ${systemMessageBackgroundColor};
- border: 1px solid ${systemMessageBorderColor};
- border-radius: ${borderRadius};
- font-weight: ${btnFontWeight};
- padding: ${fontSizeBase};
- color: ${systemMessageFontColor};
- margin-top: 0;
- margin-bottom: 0;
- overflow-wrap: break-word;
- ${({ isSystemMsg }) => !isSystemMsg && `
- flex: 1;
- margin-top: calc(${lineHeightComputed} / 3);
- margin-bottom: 0;
- color: ${colorText};
- word-wrap: break-word;
- background: unset;
- border: unset;
- border-radius: unset;
- font-weight: unset;
- padding: unset;
- `}
- ${({ emphasizedMessage }) => emphasizedMessage && `
- font-weight: bold;
- `}
-`;
-
-const SystemMessageChatItem = styled(MessageChatItem)`
- ${({ border }) => border && `
- background-color: ${systemMessageBackgroundColor};
- border: 1px solid ${systemMessageBorderColor};
- border-radius: ${borderRadius};
- font-weight: ${btnFontWeight};
- padding: ${fontSizeBase};
- color: ${systemMessageFontColor};
- margin-top: 0px;
- margin-bottom: 0px;
- overflow-wrap: break-word;
- `}
-
- ${({ border }) => !border && `
- color: ${systemMessageFontColor};
- margin-top: 0px;
- margin-bottom: 0px;
- `}
-`;
-
-const Wrapper = styled.div`
- display: flex;
- flex-flow: row;
- flex: 1;
- position: relative;
- margin: ${borderSize} 0 0 ${borderSize};
-
- ${({ isSystemSender }) => isSystemSender && `
- background-color: ${highlightedMessageBackgroundColor};
- border-left: 2px solid ${highlightedMessageBorderColor};
- border-radius: 0px 3px 3px 0px;
- padding: 8px 2px;
- `}
-
- [dir="rtl"] & {
- margin: ${borderSize} ${borderSize} 0 0;
- }
-`;
-
-const AvatarWrapper = styled.div`
- flex-basis: 2.25rem;
- flex-shrink: 0;
- flex-grow: 0;
- margin: 0 calc(${lineHeightComputed} / 2) 0 0;
-
- [dir="rtl"] & {
- margin: 0 0 0 calc(${lineHeightComputed} / 2);
- }
-`;
-
-const Content = styled.div`
- flex: 1;
- display: flex;
- flex-flow: column;
- overflow-x: hidden;
- width: calc(100% - 1.7rem);
-`;
-
-const Meta = styled.div`
- display: flex;
- flex: 1;
- flex-flow: row;
- line-height: 1.35;
- align-items: baseline;
-`;
-
-const Name = styled.div`
- display: flex;
- min-width: 0;
- font-weight: 600;
- position: relative;
-
- &:first-child {
- min-width: 0;
- display: inline-block;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- ${({ isOnline }) => isOnline && `
- color: ${colorHeading};
- `}
-
- ${({ isOnline }) => !isOnline && `
- text-transform: capitalize;
- font-style: italic;
-
- & > span {
- text-align: right;
- padding: 0 .1rem 0 0;
-
- [dir="rtl"] & {
- text-align: left;
- padding: 0 0 0 .1rem;
- }
- }
- `}
-`;
-
-const Offline = styled.span`
- color: ${colorGrayLight};
- font-weight: 100;
- text-transform: lowercase;
- font-style: italic;
- font-size: 90%;
- line-height: 1;
- align-self: center;
-`;
-
-const Time = styled.time`
- flex-shrink: 0;
- flex-grow: 0;
- flex-basis: 3.5rem;
- color: ${palettePlaceholderText};
- text-transform: uppercase;
- font-size: 75%;
- margin: 0 0 0 calc(${lineHeightComputed} / 2);
-
- [dir="rtl"] & {
- margin: 0 calc(${lineHeightComputed} / 2) 0 0;
- }
-
- & > span {
- vertical-align: sub;
- }
-`;
-
-const ChatItem = styled(MessageChatItem)`
- flex: 1;
- margin-top: calc(${lineHeightComputed} / 3);
- margin-bottom: 0;
- color: ${colorText};
- word-wrap: break-word;
-
- ${({ hasLink }) => hasLink && `
- & > a {
- color: ${colorPrimary};
- }
- `}
-
- ${({ emphasizedMessage }) => emphasizedMessage && `
- font-weight: bold;
- `}
-`;
-
-const PollIcon = styled(Icon)`
- bottom: 1px;
-`;
-
-const PollMessageChatItem = styled(MessageChatItem)`
- flex: 1;
- margin-top: calc(${lineHeightComputed} / 3);
- margin-bottom: 0;
- color: ${colorText};
- word-wrap: break-word;
-
- background-color: ${systemMessageBackgroundColor};
- border: solid 1px ${colorGrayLighter};
- border-radius: ${borderRadius};
- padding: ${chatPollMarginSm};
- padding-left: 1rem;
- margin-top: ${chatPollMarginSm} !important;
-`;
-
-const PresentationWrapper = styled(Wrapper)`
- display: flex;
- flex-flow: row;
- flex: 1;
- position: relative;
- margin: ${borderSize} 0 0 ${borderSize};
- border-left: 2px solid ${colorPrimary};
- border-radius: 2px;
- padding: 6px 0 6px 6px;
- background-color: ${systemMessageBackgroundColor};
-
- [dir="rtl"] & {
- margin: ${borderSize} ${borderSize} 0 0;
- border-right: 2px solid ${colorPrimary};
- border-left: none;
- }
-`;
-
-const PresentationChatItem = styled(MessageChatItem)`
- flex: 1;
- margin-top: ${chatPollMarginSm};
- margin-bottom: 0;
- color: ${colorText};
- word-wrap: break-word;
-`;
-
-const ReadIcon = styled(Icon)`
- color: ${colorSuccess};
- align-self: center;
- margin-left: auto;
- margin-right: .5rem;
-`;
-
-export default {
- Item,
- Messages,
- SystemMessageChatItem,
- Wrapper,
- AvatarWrapper,
- Content,
- Meta,
- Name,
- Offline,
- Time,
- ChatItem,
- PollIcon,
- PollMessageChatItem,
- PresentationChatItem,
- PresentationWrapper,
- StatusMessageChatItem,
- ReadIcon,
-};
diff --git a/bigbluebutton-html5/imports/ui/components/components-data/group-chat-context/adapter.jsx b/bigbluebutton-html5/imports/ui/components/components-data/group-chat-context/adapter.jsx
deleted file mode 100644
index 13644aae5f..0000000000
--- a/bigbluebutton-html5/imports/ui/components/components-data/group-chat-context/adapter.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { useContext, useEffect } from 'react';
-import GroupChat from '/imports/api/group-chat';
-import { GroupChatContext, ACTIONS } from './context';
-
-const Adapter = () => {
- const usingGroupChatContext = useContext(GroupChatContext);
- const { dispatch } = usingGroupChatContext;
-
- useEffect(() => {
- const groupChatCursor = GroupChat.find({});
-
- groupChatCursor.observe({
- added: (obj) => {
- dispatch({
- type: ACTIONS.ADDED,
- value: {
- groupChat: obj,
- },
- });
- },
- });
- }, []);
-};
-
-export default Adapter;
diff --git a/bigbluebutton-html5/imports/ui/components/sidebar-content/component.jsx b/bigbluebutton-html5/imports/ui/components/sidebar-content/component.jsx
index 01920e8464..98d07f50f2 100644
--- a/bigbluebutton-html5/imports/ui/components/sidebar-content/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/sidebar-content/component.jsx
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import Resizable from 're-resizable';
import { ACTIONS, PANELS } from '../layout/enums';
-import ChatContainer from '/imports/ui/components/chat/container';
+import ChatContainer from '/imports/ui/components/chat/chat-graphql/component';
import NotesContainer from '/imports/ui/components/notes/container';
import PollContainer from '/imports/ui/components/poll/container';
import CaptionsContainer from '/imports/ui/components/captions/container';
diff --git a/bigbluebutton-html5/imports/ui/components/subscriptions/component.jsx b/bigbluebutton-html5/imports/ui/components/subscriptions/component.jsx
index f705a88a17..39ff09dabf 100755
--- a/bigbluebutton-html5/imports/ui/components/subscriptions/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/subscriptions/component.jsx
@@ -2,7 +2,6 @@ import { Component } from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import Auth from '/imports/ui/services/auth';
import logger from '/imports/startup/client/logger';
-import GroupChat from '/imports/api/group-chat';
import Users from '/imports/api/users';
import { localCollectionRegistry } from '/client/collection-mirror-initializer';
import SubscriptionRegistry, {
@@ -24,7 +23,6 @@ const SUBSCRIPTIONS = [
'users-infos',
'meeting-time-remaining',
'local-settings',
- 'users-typing',
'record-meetings',
'video-streams',
'connection-status',
@@ -40,7 +38,6 @@ const SUBSCRIPTIONS = [
'layout-meetings',
'user-reaction',
'timer',
- // 'group-chat'
];
const {
localBreakoutsSync,
@@ -96,6 +93,7 @@ export default withTracker(() => {
},
'Error while subscribing to collections'
);
+ console.log('-------------------------', {error});
Session.set('codeError', error.error);
},
};
@@ -151,15 +149,6 @@ export default withTracker(() => {
subscriptionsHandlers = subscriptionsHandlers.filter((obj) => obj);
const ready = subscriptionsHandlers.every((handler) => handler.ready());
- let groupChatMessageHandler = {};
-
- // if (isChatEnabled() && ready) {
- // const subHandler = {
- // ...subscriptionErrorHandler,
- // };
-
- // groupChatMessageHandler = Meteor.subscribe('group-chat-msg', subHandler);
- // }
// TODO: Refactor all the late subscribers
let usersPersistentDataHandler = {};
diff --git a/bigbluebutton-html5/imports/ui/components/user-list/service.js b/bigbluebutton-html5/imports/ui/components/user-list/service.js
index 82f9eadaa2..b12c888d8a 100755
--- a/bigbluebutton-html5/imports/ui/components/user-list/service.js
+++ b/bigbluebutton-html5/imports/ui/components/user-list/service.js
@@ -1,7 +1,6 @@
import React from 'react';
import Users from '/imports/api/users';
import VoiceUsers from '/imports/api/voice-users';
-import GroupChat from '/imports/api/group-chat';
import Breakouts from '/imports/api/breakouts';
import Meetings from '/imports/api/meetings';
import UserReaction from '/imports/api/user-reaction';
@@ -620,29 +619,6 @@ const roving = (...args) => {
}
};
-const hasPrivateChatBetweenUsers = (senderId, receiverId) => GroupChat
- .findOne({ users: { $all: [receiverId, senderId] } });
-
-const getGroupChatPrivate = (senderUserId, receiver) => {
- const chat = hasPrivateChatBetweenUsers(senderUserId, receiver.userId);
- if (!chat) {
- makeCall('createGroupChat', receiver);
- } else {
- const startedChats = Session.get(STARTED_CHAT_LIST_KEY) || [];
- if (indexOf(startedChats, chat.chatId) < 0) {
- startedChats.push(chat.chatId);
- Session.set(STARTED_CHAT_LIST_KEY, startedChats);
- }
-
- const currentClosedChats = Storage.getItem(CLOSED_CHAT_LIST_KEY);
-
- if (ChatService.isChatClosed(chat.chatId)) {
- const closedChats = currentClosedChats.filter(closedChat => closedChat.chatId !== chat.chatId);
- Storage.setItem(CLOSED_CHAT_LIST_KEY,closedChats);
- }
- }
-};
-
const toggleUserLock = (userId, lockStatus) => {
makeCall('toggleUserLock', userId, lockStatus);
};
@@ -788,11 +764,9 @@ export default {
isPublicChat,
roving,
getCustomLogoUrl,
- getGroupChatPrivate,
hasBreakoutRoom,
getEmojiList: () => EMOJI_STATUSES,
getEmoji,
- hasPrivateChatBetweenUsers,
toggleUserLock,
requestUserInformation,
focusFirstDropDownItem,