"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/state/ducks/search.ts" 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).

search.ts  (Signal-Desktop-1.35.2):search.ts  (Signal-Desktop-1.36.1)
skipping to change at line 109 skipping to change at line 109
payload: null; payload: null;
}; };
type SearchInConversationActionType = { type SearchInConversationActionType = {
type: 'SEARCH_IN_CONVERSATION'; type: 'SEARCH_IN_CONVERSATION';
payload: { payload: {
searchConversationId: string; searchConversationId: string;
searchConversationName: string; searchConversationName: string;
}; };
}; };
export type SEARCH_TYPES = export type SearchActionType =
| SearchMessagesResultsKickoffActionType | SearchMessagesResultsKickoffActionType
| SearchDiscussionsResultsKickoffActionType | SearchDiscussionsResultsKickoffActionType
| SearchMessagesResultsFulfilledActionType | SearchMessagesResultsFulfilledActionType
| SearchDiscussionsResultsFulfilledActionType | SearchDiscussionsResultsFulfilledActionType
| UpdateSearchTermActionType | UpdateSearchTermActionType
| StartSearchActionType | StartSearchActionType
| ClearSearchActionType | ClearSearchActionType
| ClearConversationSearchActionType | ClearConversationSearchActionType
| SearchInConversationActionType | SearchInConversationActionType
| MessageDeletedActionType | MessageDeletedActionType
skipping to change at line 339 skipping to change at line 339
conversations: [], conversations: [],
contacts: [], contacts: [],
discussionsLoading: false, discussionsLoading: false,
messagesLoading: false, messagesLoading: false,
}; };
} }
// tslint:disable-next-line cyclomatic-complexity max-func-body-length // tslint:disable-next-line cyclomatic-complexity max-func-body-length
export function reducer( export function reducer(
state: SearchStateType = getEmptyState(), state: SearchStateType = getEmptyState(),
action: SEARCH_TYPES action: SearchActionType
): SearchStateType { ): SearchStateType {
if (action.type === 'SHOW_ARCHIVED_CONVERSATIONS') { if (action.type === 'SHOW_ARCHIVED_CONVERSATIONS') {
return getEmptyState(); return getEmptyState();
} }
if (action.type === 'SEARCH_START') { if (action.type === 'SEARCH_START') {
return { return {
...state, ...state,
searchConversationId: undefined, searchConversationId: undefined,
searchConversationName: undefined, searchConversationName: undefined,
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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