add getSetByQr

This commit is contained in:
LenAnderson 2024-07-16 10:41:56 -04:00
parent 5478b69253
commit ea84eddc3e

View File

@ -23,6 +23,14 @@ export class QuickReplyApi {
/**
* @param {QuickReply} qr
* @returns {QuickReplySet}
*/
getSetByQr(qr) {
return QuickReplySet.list.find(it=>it.qrList.includes(qr));
}
/**
* Finds and returns an existing Quick Reply Set by its name.
*