update
This commit is contained in:
@@ -14,6 +14,7 @@ import MessageReactions from './MessageReactions';
|
||||
interface ChatMessageProps {
|
||||
message: NextcloudMessage;
|
||||
isOwnMessage: boolean;
|
||||
isOneToOne?: boolean;
|
||||
onReplyClick?: (message: NextcloudMessage) => void;
|
||||
onReactionToggled?: (messageId: number) => void;
|
||||
reactionsOverride?: { reactions: Record<string, number>; reactionsSelf: string[] };
|
||||
@@ -28,7 +29,7 @@ function hasPollParam(params?: Record<string, any>): boolean {
|
||||
return params?.object?.type === 'talk-poll';
|
||||
}
|
||||
|
||||
const ChatMessage: React.FC<ChatMessageProps> = ({ message, isOwnMessage, onReplyClick, onReactionToggled, reactionsOverride }) => {
|
||||
const ChatMessage: React.FC<ChatMessageProps> = ({ message, isOwnMessage, isOneToOne, onReplyClick, onReactionToggled, reactionsOverride }) => {
|
||||
const [hovered, setHovered] = useState(false);
|
||||
const longPressTimer = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
const hideTimer = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user