Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

fix: store phone-sent messages in chat history (issue #526) (#530)

Aldino Kemal6095bcf79696
diff --git a/.gitignore b/.gitignore
index a5e7c7e4..7104622d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,4 +15,4 @@ bin
.factory
.vscode/settings.json
src/whatsapp
-.worktrees/
\ No newline at end of file
+.worktrees/
diff --git a/src/infrastructure/chatstorage/sqlite_repository.go b/src/infrastructure/chatstorage/sqlite_repository.go
index b0afc59d..d8e3b0a9 100644
--- a/src/infrastructure/chatstorage/sqlite_repository.go
+++ b/src/infrastructure/chatstorage/sqlite_repository.go
@@ -734,11 +734,6 @@ func (r *SQLiteRepository) CreateMessage(ctx context.Context, evt *events.Messag
return nil
}
- if evt.Info.IsFromMe {
- logrus.Debugf("Skipping storage of echo message %s (IsFromMe=true) - already stored by sender", evt.Info.ID)
- return nil
- }
-
// Get WhatsApp client for LID resolution (device-scoped if present in context)
client := whatsapp.ClientFromContext(ctx)
deviceID := ""