feat(xep): Allow ignoring the discussion history

Also allow specifying the amount of stanzas of discussion history we
want.
This commit is contained in:
2023-09-22 19:23:35 +02:00
parent d4416c8a47
commit d7c13abde6
3 changed files with 105 additions and 13 deletions

View File

@@ -58,7 +58,11 @@ void main(List<String> args) async {
Logger.root.info('Connected.');
// Join room
await connection.getManagerById<MUCManager>(mucManager)!.joinRoom(muc, nick);
await connection.getManagerById<MUCManager>(mucManager)!.joinRoom(
muc,
nick,
maxHistoryStanzas: 0,
);
final repl = Repl(prompt: '> ');
await for (final line in repl.runAsync()) {