diff --git a/.github/alert.html b/.github/alert.html
new file mode 100644
index 00000000000..566549bdf8f
--- /dev/null
+++ b/.github/alert.html
@@ -0,0 +1,10 @@
+
+
+
+
+ Title
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 00000000000..c79e6fe4697
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 00000000000..80129466287
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 00000000000..66f89e37ea1
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000000..35eb1ddfbbc
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 00000000000..2c2fc0bba61
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "keyToString": {
+ "DefaultHtmlFileTemplate": "HTML File",
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "last_opened_file_path": "C:/Users/ARIJIT/Documents/GitHub/zulip"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ false
+
+
+
+
+
+
+
+ 1668621683329
+
+
+ 1668621683329
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/settings.gradle b/android/settings.gradle
index a9a7399319d..1f181aabf47 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -1,6 +1,6 @@
rootProject.name = 'ZulipMobile'
-apply from: '../node_modules/expo/scripts/autolinking.gradle'
+ apply from: '../node_modules/expo/scripts/autolinking.gradle'
useExpoModules()
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle");
diff --git a/src/common/ZulipButton.js b/src/common/ZulipButton.js
index 8548e0c9d2d..8d260e216e9 100644
--- a/src/common/ZulipButton.js
+++ b/src/common/ZulipButton.js
@@ -109,7 +109,6 @@ type Props = $ReadOnly<{|
/**
* A button component that is provides consistent look and feel
* throughout the app. It can be disabled or show action-in-progress.
- *
* If several buttons are on the same screen all or all but one should
* have their `secondary` property set to `true`.
*
diff --git a/src/streams/StreamSettingsScreen.js b/src/streams/StreamSettingsScreen.js
index 16b0e54c5e1..4b36cbdd482 100644
--- a/src/streams/StreamSettingsScreen.js
+++ b/src/streams/StreamSettingsScreen.js
@@ -1,7 +1,7 @@
-/* @flow strict-local */
-import React, { useCallback } from 'react';
+ /* @flow strict-local */
+import React, { useCallback } ,{useState} from 'react';
import type { Node } from 'react';
-import { View } from 'react-native';
+import { View,Alert} from 'react-native';
import type { RouteProp } from '../react-navigation';
import type { AppNavigationProp } from '../nav/AppNavigator';
@@ -42,6 +42,11 @@ export default function StreamSettingsScreen(props: Props): Node {
},
[auth, stream],
);
+ const alert_button = () =>
+ Alert.alert("Do you want to unsubscribe?",
+ [{text:"Cancel",onPress: () => console.log("Cancel Pressed"),style: "cancel"},{text:"OK",
+ onPress: () => delay(handlePressUnsubscribe)}]
+ );
const handleToggleMuteStream = useCallback(
(newValue: boolean) => {
@@ -128,7 +133,7 @@ export default function StreamSettingsScreen(props: Props): Node {
style={styles.marginTop}
text="Unsubscribe"
secondary
- onPress={() => delay(handlePressUnsubscribe)}
+ onPress={this.alert_button}
/>
) : (