Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(native app): Display poll creator name

Philipp Frucka71143891e2f
diff --git a/react/features/polls/components/native/PollResults.tsx b/react/features/polls/components/native/PollResults.tsx
index c156aac741..83d19ee9b9 100644
--- a/react/features/polls/components/native/PollResults.tsx
+++ b/react/features/polls/components/native/PollResults.tsx
@@ -1,8 +1,6 @@
import React, { useCallback } from 'react';
import { FlatList, Text, TextStyle, View, ViewStyle } from 'react-native';
-import { useSelector } from 'react-redux';
-import { getLocalParticipant } from '../../../base/participants/functions';
import Button from '../../../base/ui/components/native/Button';
import { BUTTON_TYPES } from '../../../base/ui/constants.native';
import AbstractPollResults from '../AbstractPollResults';
@@ -20,6 +18,7 @@ const PollResults = (props: AbstractProps) => {
const {
answers,
changeVote,
+ creatorName,
haveVoted,
question,
showDetails,
@@ -88,7 +87,6 @@ const PollResults = (props: AbstractProps) => {
);
}, [ showDetails ]);
- const localParticipant = useSelector(getLocalParticipant);
/* eslint-disable react/jsx-no-bind */
@@ -96,7 +94,7 @@ const PollResults = (props: AbstractProps) => {
<View>
<Text style = { dialogStyles.questionText as TextStyle } >{ question }</Text>
<Text style = { dialogStyles.questionOwnerText as TextStyle } >
- { t('polls.by', { name: localParticipant?.name }) }
+ { t('polls.by', { name: creatorName }) }
</Text>
<FlatList
data = { answers }