Commit 0967c2d2 authored by nanahira's avatar nanahira

bump

parent 1bb46983
......@@ -13,10 +13,11 @@ const app = new Context({
});
// Console and sandbox
app.plugin(SandboxPlugin);
// app.plugin(SandboxPlugin);
app.plugin(ConsolePlugin, {
open: false,
});
app.plugin(SandboxPlugin);
// Some services
app.plugin(CachePlugin);
......
This diff is collapsed.
......@@ -44,7 +44,7 @@ export class OrderPickerConfig {
if (!session.userId || !this.publishers.includes(session.userId)) {
return false;
}
const segments = segment.parse(session.content);
const segments = session.elements;
if (!segments.find((s) => s.type === 'at' && s.data.type === 'all')) {
return false;
}
......
......@@ -24,7 +24,7 @@ function plainText(text: string) {
return segment
.parse(text)
.filter((s) => s.type === 'text')
.map((s) => s.data.content)
.map((s) => s.attrs.content)
.join('')
.trim();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment