mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Update chat history link
This commit is contained in:
parent
13e0974fb6
commit
410fffc9be
@ -1,10 +1,9 @@
|
|||||||
import { GetGuestRoomResultEvent, RoomLikeRoomComposer } from '@nitrots/nitro-renderer';
|
import { GetGuestRoomResultEvent, RoomLikeRoomComposer } from '@nitrots/nitro-renderer';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText, RoomWidgetZoomToggleMessage } from '../../../../api';
|
import { CreateLinkEvent, LocalizeText, RoomWidgetZoomToggleMessage } from '../../../../api';
|
||||||
import { Base, Column, Flex, Text } from '../../../../common';
|
import { Base, Column, Flex, Text } from '../../../../common';
|
||||||
import { NavigatorEvent } from '../../../../events';
|
import { NavigatorEvent } from '../../../../events';
|
||||||
import { ChatHistoryEvent } from '../../../../events/chat-history/ChatHistoryEvent';
|
|
||||||
import { dispatchUiEvent } from '../../../../hooks/events';
|
import { dispatchUiEvent } from '../../../../hooks/events';
|
||||||
import { CreateMessageHook, SendMessageHook } from '../../../../hooks/messages';
|
import { CreateMessageHook, SendMessageHook } from '../../../../hooks/messages';
|
||||||
import { useRoomContext } from '../../context/RoomContext';
|
import { useRoomContext } from '../../context/RoomContext';
|
||||||
@ -33,7 +32,7 @@ export const RoomToolsWidgetView: FC<{}> = props =>
|
|||||||
setIsZoomedIn(value => !value);
|
setIsZoomedIn(value => !value);
|
||||||
return;
|
return;
|
||||||
case 'chat_history':
|
case 'chat_history':
|
||||||
dispatchUiEvent(new ChatHistoryEvent(ChatHistoryEvent.TOGGLE_CHAT_HISTORY));
|
CreateLinkEvent('chat-history/toggle');
|
||||||
return;
|
return;
|
||||||
case 'like_room':
|
case 'like_room':
|
||||||
if(isLiked) return;
|
if(isLiked) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user