|
|
@ -14,6 +14,7 @@ import { GroupInvitation } from '../../conversation/GroupInvitation';
|
|
|
|
import { ConversationType } from '../../../state/ducks/conversations';
|
|
|
|
import { ConversationType } from '../../../state/ducks/conversations';
|
|
|
|
import { MessageModel } from '../../../../js/models/messages';
|
|
|
|
import { MessageModel } from '../../../../js/models/messages';
|
|
|
|
import { SessionLastSeenIndicator } from './SessionLastSeedIndicator';
|
|
|
|
import { SessionLastSeenIndicator } from './SessionLastSeedIndicator';
|
|
|
|
|
|
|
|
import { VerificationNotification } from '../../conversation/VerificationNotification';
|
|
|
|
|
|
|
|
|
|
|
|
interface State {
|
|
|
|
interface State {
|
|
|
|
isScrolledToBottom: boolean;
|
|
|
|
isScrolledToBottom: boolean;
|
|
|
@ -126,6 +127,8 @@ export class SessionConversationMessagesList extends React.Component<
|
|
|
|
|
|
|
|
|
|
|
|
const timerProps = message.propsForTimerNotification;
|
|
|
|
const timerProps = message.propsForTimerNotification;
|
|
|
|
const resetSessionProps = message.propsForResetSessionNotification;
|
|
|
|
const resetSessionProps = message.propsForResetSessionNotification;
|
|
|
|
|
|
|
|
const verificationSessionProps =
|
|
|
|
|
|
|
|
message.propsForVerificationNotification;
|
|
|
|
const propsForGroupInvitation = message.propsForGroupInvitation;
|
|
|
|
const propsForGroupInvitation = message.propsForGroupInvitation;
|
|
|
|
|
|
|
|
|
|
|
|
const groupNotificationProps = message.propsForGroupNotification;
|
|
|
|
const groupNotificationProps = message.propsForGroupNotification;
|
|
|
@ -139,6 +142,7 @@ export class SessionConversationMessagesList extends React.Component<
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
unreadIndicator = <SessionLastSeenIndicator count={unreadCount} />;
|
|
|
|
unreadIndicator = <SessionLastSeenIndicator count={unreadCount} />;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
currentMessageIndex = currentMessageIndex + 1;
|
|
|
|
currentMessageIndex = currentMessageIndex + 1;
|
|
|
|
|
|
|
|
|
|
|
|
if (groupNotificationProps) {
|
|
|
|
if (groupNotificationProps) {
|
|
|
@ -159,6 +163,15 @@ export class SessionConversationMessagesList extends React.Component<
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (verificationSessionProps) {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<>
|
|
|
|
|
|
|
|
{unreadIndicator}
|
|
|
|
|
|
|
|
<VerificationNotification {...verificationSessionProps} />
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (resetSessionProps) {
|
|
|
|
if (resetSessionProps) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
@ -186,7 +199,7 @@ export class SessionConversationMessagesList extends React.Component<
|
|
|
|
messageProps,
|
|
|
|
messageProps,
|
|
|
|
message.firstMessageOfSeries,
|
|
|
|
message.firstMessageOfSeries,
|
|
|
|
multiSelectMode
|
|
|
|
multiSelectMode
|
|
|
|
)}{' '}
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|