"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/components/conversation/TimerNotification.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).

TimerNotification.tsx  (Signal-Desktop-1.35.2):TimerNotification.tsx  (Signal-Desktop-1.36.1)
import React from 'react'; import React from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import { ContactName } from './ContactName'; import { ContactName } from './ContactName';
import { Intl } from '../Intl'; import { Intl } from '../Intl';
import { LocalizerType } from '../../types/Util'; import { LocalizerType } from '../../types/Util';
export type PropsData = { export type PropsData = {
type: 'fromOther' | 'fromMe' | 'fromSync'; type: 'fromOther' | 'fromMe' | 'fromSync' | 'fromMember';
phoneNumber?: string; phoneNumber?: string;
profileName?: string; profileName?: string;
title: string; title: string;
name?: string; name?: string;
disabled: boolean; disabled: boolean;
timespan: string; timespan: string;
}; };
type PropsHousekeeping = { type PropsHousekeeping = {
i18n: LocalizerType; i18n: LocalizerType;
skipping to change at line 69 skipping to change at line 69
/> />
); );
case 'fromMe': case 'fromMe':
return disabled return disabled
? i18n('youDisabledDisappearingMessages') ? i18n('youDisabledDisappearingMessages')
: i18n('youChangedTheTimer', [timespan]); : i18n('youChangedTheTimer', [timespan]);
case 'fromSync': case 'fromSync':
return disabled return disabled
? i18n('disappearingMessagesDisabled') ? i18n('disappearingMessagesDisabled')
: i18n('timerSetOnSync', [timespan]); : i18n('timerSetOnSync', [timespan]);
case 'fromMember':
return disabled
? i18n('disappearingMessagesDisabledByMember')
: i18n('timerSetByMember', [timespan]);
default: default:
console.warn('TimerNotification: unsupported type provided:', type); console.warn('TimerNotification: unsupported type provided:', type);
return null; return null;
} }
} }
public render() { public render() {
const { timespan, disabled } = this.props; const { timespan, disabled } = this.props;
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

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