@@ -266,7 +266,6 @@ type AppContextValue = {
266266 startDefaultLiveActivity : ( activityId : string , attributes : object , content : object ) => void ;
267267 updateLiveActivity : ( activityId : string , eventUpdates : Record < string , unknown > ) => Promise < void > ;
268268 endLiveActivity : ( activityId : string ) => Promise < void > ;
269- stopUpdatingLiveActivity : ( activityId : string ) => void ;
270269} ;
271270
272271const AppContext = createContext < AppContextValue | null > ( null ) ;
@@ -715,12 +714,6 @@ export function AppContextProvider({ children }: Props) {
715714 Toast . show ( { type : success ? 'info' : 'error' , text1 : msg } ) ;
716715 } , [ ] ) ;
717716
718- const stopUpdatingLiveActivity = useCallback ( ( activityId : string ) => {
719- repository . exitLiveActivity ( activityId ) ;
720- log . i ( TAG , `Exited Live Activity: ${ activityId } ` ) ;
721- Toast . show ( { type : 'info' , text1 : `Exited Live Activity: ${ activityId } ` } ) ;
722- } , [ ] ) ;
723-
724717 const contextValue = useMemo < AppContextValue > (
725718 ( ) => ( {
726719 state,
@@ -757,7 +750,6 @@ export function AppContextProvider({ children }: Props) {
757750 startDefaultLiveActivity : startDefaultLiveActivity ,
758751 updateLiveActivity,
759752 endLiveActivity,
760- stopUpdatingLiveActivity,
761753 } ) ,
762754 [
763755 state ,
@@ -794,7 +786,6 @@ export function AppContextProvider({ children }: Props) {
794786 startDefaultLiveActivity ,
795787 updateLiveActivity ,
796788 endLiveActivity ,
797- stopUpdatingLiveActivity ,
798789 ] ,
799790 ) ;
800791
0 commit comments