feat: render polls

This commit is contained in:
2023-04-05 16:10:14 +01:00
parent 92dac6a699
commit bbc7e443df
9 changed files with 154 additions and 4 deletions

View File

@ -81,6 +81,7 @@ const Timeline = (props: TimelineProps) => {
case EventKind.SetMetadata: {
return <ProfilePreview actions={<></>} pubkey={e.pubkey} className="card" />;
}
case EventKind.Polls:
case EventKind.TextNote: {
const eRef = e.tags.find(tagFilterOfTextRepost(e))?.at(1);
if (eRef) {