|
|
@@ -212,7 +212,15 @@ const InnerApp = () => {
|
|
|
|
|
|
const handlePollPress = () => {
|
|
|
if (!activePoll?.url) return;
|
|
|
- Linking.openURL(activePoll.url).catch((err) => console.error('Failed to open poll URL:', err));
|
|
|
+
|
|
|
+ let url = activePoll.url;
|
|
|
+ const currentToken = storage.get('token', StoreType.STRING) as string | null;
|
|
|
+ if (currentToken) {
|
|
|
+ const separator = url.includes('?') ? '&' : '?';
|
|
|
+ url = `${url}${separator}token=${encodeURIComponent(currentToken)}`;
|
|
|
+ }
|
|
|
+
|
|
|
+ Linking.openURL(url).catch((err) => console.error('Failed to open poll URL:', err));
|
|
|
};
|
|
|
|
|
|
const handleUpdatePress = () => {
|