implement QR basics

This commit is contained in:
LenAnderson
2023-12-20 13:40:44 +00:00
parent e19bf1afdd
commit 69d6b9379a
13 changed files with 1570 additions and 0 deletions

View File

@ -0,0 +1,25 @@
import { QuickReplySet } from './QuickReplySet.js';
export class QuickReplyContextLink {
static from(props) {
props.set = QuickReplySet.get(props.set);
const x = Object.assign(new this(), props);
return x;
}
/**@type {QuickReplySet}*/ set;
/**@type {Boolean}*/ isChained = false;
toJSON() {
return {
set: this.set?.name,
isChained: this.isChained,
};
}
}