@@ -53,6 +53,7 @@ import { getStreamTopicUrl, getStreamUrl } from '../utils/internalLinks';
5353import { reactionTypeFromEmojiType } from '../emoji/data' ;
5454import { Role , type RoleT } from '../api/permissionsTypes' ;
5555import { roleIsAtLeast } from '../permissionSelectors' ;
56+ import type { AppNavigationMethods } from '../nav/AppNavigator' ;
5657
5758// TODO really this belongs in a libdef.
5859export type ShowActionSheetWithOptions = (
@@ -66,6 +67,7 @@ type StreamArgs = {
6667 subscriptions : Map < number , Subscription> ,
6768 streams : Map < number , Stream> ,
6869 dispatch : Dispatch ,
70+ navigation : AppNavigationMethods ,
6971 _ : GetText ,
7072 ...
7173} ;
@@ -78,12 +80,14 @@ type TopicArgs = {
7880 streams : Map < number , Stream> ,
7981 zulipFeatureLevel : number ,
8082 dispatch : Dispatch ,
83+ navigation : AppNavigationMethods ,
8184 _ : GetText ,
8285 ...
8386} ;
8487
8588type PmArgs = {
8689 pmKeyRecipients : PmKeyRecipients ,
90+ navigation : AppNavigationMethods ,
8791 _ : GetText ,
8892 ...
8993} ;
@@ -93,8 +97,9 @@ type MessageArgs = {
9397 ownUser : User ,
9498 message : Message | Outbox ,
9599 dispatch : Dispatch ,
96- _ : GetText ,
97100 startEditMessage : ( editMessage : EditMessage ) => void ,
101+ navigation : AppNavigationMethods ,
102+ _ : GetText ,
98103 ...
99104} ;
100105
@@ -661,6 +666,7 @@ export const showMessageActionSheet = (args: {|
661666 callbacks : { |
662667 dispatch : Dispatch ,
663668 startEditMessage : ( editMessage : EditMessage ) => void ,
669+ navigation : AppNavigationMethods ,
664670 _ : GetText ,
665671 | } ,
666672 backgroundData : $ReadOnly < {
@@ -685,6 +691,7 @@ export const showTopicActionSheet = (args: {|
685691 showActionSheetWithOptions : ShowActionSheetWithOptions ,
686692 callbacks : { |
687693 dispatch : Dispatch ,
694+ navigation : AppNavigationMethods ,
688695 _ : GetText ,
689696 | } ,
690697 backgroundData : $ReadOnly < {
@@ -716,6 +723,7 @@ export const showStreamActionSheet = (args: {|
716723 showActionSheetWithOptions : ShowActionSheetWithOptions ,
717724 callbacks : { |
718725 dispatch : Dispatch ,
726+ navigation : AppNavigationMethods ,
719727 _ : GetText ,
720728 | } ,
721729 backgroundData : $ReadOnly < {
@@ -741,6 +749,7 @@ export const showStreamActionSheet = (args: {|
741749export const showPmConversationActionSheet = ( args : { |
742750 showActionSheetWithOptions : ShowActionSheetWithOptions ,
743751 callbacks : { |
752+ navigation : AppNavigationMethods ,
744753 _ : GetText ,
745754 | } ,
746755 backgroundData : $ReadOnly < { ownUser : User , allUsersById : Map < UserId , UserOrBot> , ... } > ,
0 commit comments