This commit is contained in:
Matthias Hochmeister
2026-03-16 15:17:28 +01:00
parent d780a284d3
commit 023bd7acbb
2 changed files with 37 additions and 1 deletions

View File

@@ -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);