Add support for draft/event-playback

This commit is contained in:
Simon Ser
2021-06-04 19:45:51 +02:00
parent 651e255ddb
commit 34078d5da7
4 changed files with 65 additions and 34 deletions
+11
View File
@@ -533,3 +533,14 @@ export function parseMembershipModes(str) {
}
return memberships;
}
export function findBatchByType(msg, type) {
var batch = msg.batch;
while (batch) {
if (batch.type === type) {
return batch;
}
batch = batch.parent;
}
return null;
}