Skip to content

Commit 71699b5

Browse files
committed
fixing bugs
1 parent 71304fc commit 71699b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/actions/reassemble.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function timer(this_) {
2828
}
2929

3030
async function processAction(msg, cfg) {
31-
const { mode } = cfg;
31+
const { mode = 'groupSize' } = cfg;
3232
const storage = new ObjectStorageWrapperExtended(this);
3333
const {
3434
groupSize,
@@ -109,7 +109,7 @@ async function processAction(msg, cfg) {
109109
timeHandle = setTimeout(timer, delay, this);
110110
if (!groupList.includes(messageGroupId)) {
111111
groupList.push(messageGroupId);
112-
}
112+
}
113113
}
114114

115115
// When both groupSize and delay timer option is selected
@@ -120,7 +120,7 @@ async function processAction(msg, cfg) {
120120

121121
if (!groupList.includes(messageGroupId)) {
122122
groupList.push(messageGroupId);
123-
}
123+
}
124124

125125
if (messagesNumberSeen >= messageGroupSize) {
126126
parsedMessageGroup.messages.forEach((message) => {

0 commit comments

Comments
 (0)