[PR #70] [MERGED] Fix crash when "msg.message" is undefined #72

Closed
opened 2026-02-27 11:09:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mimamch/wa-multi-session/pull/70
Author: @eabdalmufid
Created: 12/24/2025
Status: Merged
Merged: 12/24/2025
Merged by: @mimamch

Base: masterHead: master


📝 Commits (1)

  • abbe7f8 fix: guard protocolMessage access with optional chaining

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/Whatsapp/Whatsapp.ts (+2 -2)

📄 Description

Prevent runtime error by safely checking "protocolMessage" using optional chaining, since some Baileys message events may not include a "message" payload.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mimamch/wa-multi-session/pull/70 **Author:** [@eabdalmufid](https://github.com/eabdalmufid) **Created:** 12/24/2025 **Status:** ✅ Merged **Merged:** 12/24/2025 **Merged by:** [@mimamch](https://github.com/mimamch) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`abbe7f8`](https://github.com/mimamch/wa-multi-session/commit/abbe7f8edc5bd5f1e1d7b343e8985ab4eda312b9) fix: guard protocolMessage access with optional chaining ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/Whatsapp/Whatsapp.ts` (+2 -2) </details> ### 📄 Description Prevent runtime error by safely checking "protocolMessage" using optional chaining, since some Baileys message events may not include a "message" payload. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 11:09:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wa-multi-session-mimamch#72
No description provided.