add poll support

Fixes #130
This commit is contained in:
Henry Hiles 2026-11-02 12:03:52 -05:00
commit f6aaf49164
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -0,0 +1,12 @@
import "package:nexus/models/content/content.dart";
class const PollEndContent() extends Content {
factory PollEndContent.fromJson(Map<String, dynamic> json) =>
const PollEndContent();
@override
Map<String, dynamic> toJson() => {
"org.matrix.msc3381.poll.end": {},
"org.matrix.msc1767.text": "Ended the poll",
};
}