whatsapp-pi 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-pi",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "type": "module",
5
5
  "description": "WhatsApp integration extension for Pi",
6
6
  "main": "whatsapp-pi.ts",
@@ -17,16 +17,13 @@ export class MenuHandler {
17
17
  const registered = await this.sessionManager.isRegistered();
18
18
  const options: string[] = [];
19
19
 
20
- options.push('Recents');
21
-
22
20
  if (status === 'connected') {
21
+ options.push('Recents');
23
22
  options.push('Allowed Numbers');
24
23
  options.push('Blocked Numbers');
25
24
  options.push('Disconnect WhatsApp');
26
25
  } else {
27
- options.push('Connect / Reconnect WhatsApp');
28
- options.push('Allowed Numbers');
29
- options.push('Blocked Numbers');
26
+ options.push('Connect WhatsApp');
30
27
  }
31
28
 
32
29
  if (registered) {
@@ -38,7 +35,7 @@ export class MenuHandler {
38
35
  const choice = await ctx.ui.select(`WhatsApp (Status: ${status})`, options);
39
36
 
40
37
  switch (choice) {
41
- case 'Connect / Reconnect WhatsApp':
38
+ case 'Connect WhatsApp':
42
39
  if (status === 'connected') {
43
40
  ctx.ui.notify('WhatsApp is already connected', 'info');
44
41
  break;