Skip to content

Commit

Permalink
update whatsmeow to 20240821 from tulir/whatsmeow@3d63c6f
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Aug 25, 2024
1 parent 6c109e5 commit e3c6e33
Show file tree
Hide file tree
Showing 25 changed files with 1,935 additions and 2,995 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "5.2.2"
#define NCHAT_VERSION "5.2.3"
4 changes: 1 addition & 3 deletions lib/wmchat/go/ext/whatsmeow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ discussions.

## Usage
The [godoc](https://pkg.go.dev/go.mau.fi/whatsmeow) includes docs for all methods and event types.
There's also a [simple example](https://godocs.io/go.mau.fi/whatsmeow#example-package) at the top.

Also see [mdtest](./mdtest) for a CLI tool you can easily try out whatsmeow with.
There's also a [simple example](https://pkg.go.dev/go.mau.fi/whatsmeow#example-package) at the top.

## Features
Most core features are already present:
Expand Down
1 change: 1 addition & 0 deletions lib/wmchat/go/ext/whatsmeow/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func NewClient(deviceStore *store.Device, log waLog.Logger) *Client {
}
cli.nodeHandlers = map[string]nodeHandler{
"message": cli.handleEncryptedMessage,
"appdata": cli.handleEncryptedMessage,
"receipt": cli.handleReceipt,
"call": cli.handleCallEvent,
"chatstate": cli.handleChatState,
Expand Down
5 changes: 4 additions & 1 deletion lib/wmchat/go/ext/whatsmeow/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ func eventHandler(evt interface{}) {
}

func Example() {
// |------------------------------------------------------------------------------------------------------|
// | NOTE: You must also import the appropriate DB connector, e.g. github.com/mattn/go-sqlite3 for SQLite |
// |------------------------------------------------------------------------------------------------------|

dbLog := waLog.Stdout("Database", "DEBUG", true)
// Make sure you add appropriate DB connector imports, e.g. github.com/mattn/go-sqlite3 for SQLite
container, err := sqlstore.New("sqlite3", "file:examplestore.db?_foreign_keys=on", dbLog)
if err != nil {
panic(err)
Expand Down
5 changes: 0 additions & 5 deletions lib/wmchat/go/ext/whatsmeow/mdtest/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions lib/wmchat/go/ext/whatsmeow/mdtest/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions lib/wmchat/go/ext/whatsmeow/mdtest/go.mod

This file was deleted.

53 changes: 0 additions & 53 deletions lib/wmchat/go/ext/whatsmeow/mdtest/go.sum

This file was deleted.

Loading

0 comments on commit e3c6e33

Please sign in to comment.