"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/components/conversation/ConversationHeader.tsx" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

ConversationHeader.tsx  (Signal-Desktop-1.35.2):ConversationHeader.tsx  (Signal-Desktop-1.36.1)
skipping to change at line 38 skipping to change at line 38
profileName?: string; profileName?: string;
color?: ColorType; color?: ColorType;
avatarPath?: string; avatarPath?: string;
type: 'direct' | 'group'; type: 'direct' | 'group';
title: string; title: string;
isAccepted?: boolean; isAccepted?: boolean;
isVerified?: boolean; isVerified?: boolean;
isMe?: boolean; isMe?: boolean;
isArchived?: boolean; isArchived?: boolean;
leftGroup?: boolean;
disableTimerChanges?: boolean;
expirationSettingName?: string; expirationSettingName?: string;
muteExpirationLabel?: string; muteExpirationLabel?: string;
showBackButton?: boolean; showBackButton?: boolean;
timerOptions?: Array<TimerOption>; timerOptions?: Array<TimerOption>;
} }
export interface PropsActionsType { export interface PropsActionsType {
onSetMuteNotifications: (seconds: number) => void; onSetMuteNotifications: (seconds: number) => void;
onSetDisappearingMessages: (seconds: number) => void; onSetDisappearingMessages: (seconds: number) => void;
onDeleteMessages: () => void; onDeleteMessages: () => void;
skipping to change at line 289 skipping to change at line 289
? null ? null
: 'module-conversation-header__video-calling-button--show' : 'module-conversation-header__video-calling-button--show'
)} )}
disabled={showBackButton} disabled={showBackButton}
/> />
); );
} }
public renderMenu(triggerId: string) { public renderMenu(triggerId: string) {
const { const {
disableTimerChanges,
i18n, i18n,
isAccepted, isAccepted,
isMe, isMe,
type, type,
isArchived, isArchived,
leftGroup,
muteExpirationLabel, muteExpirationLabel,
onDeleteMessages, onDeleteMessages,
onResetSession, onResetSession,
onSetDisappearingMessages, onSetDisappearingMessages,
onSetMuteNotifications, onSetMuteNotifications,
onShowAllMedia, onShowAllMedia,
onShowGroupMembers, onShowGroupMembers,
onShowSafetyNumber, onShowSafetyNumber,
onArchive, onArchive,
onMoveToInbox, onMoveToInbox,
skipping to change at line 332 skipping to change at line 332
); );
} }
muteOptions.push(...getMuteOptions(i18n)); muteOptions.push(...getMuteOptions(i18n));
const disappearingTitle = i18n('disappearingMessages') as any; const disappearingTitle = i18n('disappearingMessages') as any;
const muteTitle = i18n('muteNotificationsTitle') as any; const muteTitle = i18n('muteNotificationsTitle') as any;
const isGroup = type === 'group'; const isGroup = type === 'group';
return ( return (
<ContextMenu id={triggerId}> <ContextMenu id={triggerId}>
{!leftGroup && isAccepted ? ( {disableTimerChanges ? null : (
<SubMenu title={disappearingTitle}> <SubMenu title={disappearingTitle}>
{(timerOptions || []).map(item => ( {(timerOptions || []).map(item => (
<MenuItem <MenuItem
key={item.value} key={item.value}
onClick={() => { onClick={() => {
onSetDisappearingMessages(item.value); onSetDisappearingMessages(item.value);
}} }}
> >
{item.name} {item.name}
</MenuItem> </MenuItem>
))} ))}
</SubMenu> </SubMenu>
) : null} )}
<SubMenu title={muteTitle}> <SubMenu title={muteTitle}>
{muteOptions.map(item => ( {muteOptions.map(item => (
<MenuItem <MenuItem
key={item.name} key={item.name}
disabled={item.disabled} disabled={item.disabled}
onClick={() => { onClick={() => {
onSetMuteNotifications(item.value); onSetMuteNotifications(item.value);
}} }}
> >
{item.name} {item.name}
 End of changes. 6 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)