File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async function timer(this_) {
28
28
}
29
29
30
30
async function processAction ( msg , cfg ) {
31
- const { mode } = cfg ;
31
+ const { mode = 'groupSize' } = cfg ;
32
32
const storage = new ObjectStorageWrapperExtended ( this ) ;
33
33
const {
34
34
groupSize,
@@ -109,7 +109,7 @@ async function processAction(msg, cfg) {
109
109
timeHandle = setTimeout ( timer , delay , this ) ;
110
110
if ( ! groupList . includes ( messageGroupId ) ) {
111
111
groupList . push ( messageGroupId ) ;
112
- }
112
+ }
113
113
}
114
114
115
115
// When both groupSize and delay timer option is selected
@@ -120,7 +120,7 @@ async function processAction(msg, cfg) {
120
120
121
121
if ( ! groupList . includes ( messageGroupId ) ) {
122
122
groupList . push ( messageGroupId ) ;
123
- }
123
+ }
124
124
125
125
if ( messagesNumberSeen >= messageGroupSize ) {
126
126
parsedMessageGroup . messages . forEach ( ( message ) => {
You can’t perform that action at this time.
0 commit comments