Change poll options to alphabetic letters when status text is hidden (#10685)

Fix #10569
This commit is contained in:
Eugen Rochko
2019-05-18 14:41:16 +02:00
committed by GitHub
parent 2c12620adb
commit 6fe474837c
3 changed files with 10 additions and 8 deletions

View File

@ -106,7 +106,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
}
if (status.get('poll')) {
media = <PollContainer pollId={status.get('poll')} />;
media = <PollContainer pollId={status.get('poll')} visible={!status.get('hidden')} />;
} else if (status.get('media_attachments').size > 0) {
if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
const video = status.getIn(['media_attachments', 0]);