|
|
|
@ -4,6 +4,7 @@ import PropTypes from 'prop-types'; |
|
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
|
|
import { FormattedMessage } from 'react-intl'; |
|
|
|
|
import Icon from 'flavours/glitch/components/icon'; |
|
|
|
|
import { me } from 'flavours/glitch/util/initial_state'; |
|
|
|
|
|
|
|
|
|
export default class StatusPrepend extends React.PureComponent { |
|
|
|
|
|
|
|
|
@ -64,6 +65,14 @@ export default class StatusPrepend extends React.PureComponent { |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
case 'poll': |
|
|
|
|
if (me === account.get('id')) { |
|
|
|
|
return ( |
|
|
|
|
<FormattedMessage |
|
|
|
|
id='notification.own_poll' |
|
|
|
|
defaultMessage='Your poll has ended' |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
return ( |
|
|
|
|
<FormattedMessage |
|
|
|
|
id='notification.poll' |
|
|
|
@ -71,6 +80,7 @@ export default class StatusPrepend extends React.PureComponent { |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|