Kaori Tokashiki 5 лет назад
Родитель
Сommit
18d82c7a78
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      src/server/service/bolt.js

+ 2 - 6
src/server/service/bolt.js

@@ -126,7 +126,8 @@ class BoltService {
       const args = parsedValue.args;
       const offset = parsedValue.offset;
 
-      this.showNextResults(command, args, offset);
+      const newOffset = offset + 10;
+      this.showEphemeralSearchResults(command, args, newOffset);
     });
 
     this.bolt.action('shareSearchResults', async({
@@ -150,11 +151,6 @@ class BoltService {
     return;
   }
 
-  showNextResults = (command, args, offset) => {
-    const newOffset = offset + 10;
-    this.showEphemeralSearchResults(command, args, newOffset);
-  }
-
   async getSearchResultPaths(command, args, offset = 0) {
     const firstKeyword = args[1];
     if (firstKeyword == null) {