Skip to content

Commit

Permalink
Fix: logical bug. if no JID provided getFirstDevice instead of creati…
Browse files Browse the repository at this point in the history
…ng new one
  • Loading branch information
aqasemi authored Aug 17, 2024
1 parent 55cafd1 commit 65fc0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goneonize/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func Neonize(db *C.char, id *C.char, JIDByte *C.uchar, JIDSize C.int, logLevel *
}
deviceStore, err_device = container.GetDevice(utils.DecodeJidProto(&JID))
} else {
deviceStore, err_device = container.NewDevice(), nil
deviceStore, err_device = container.GetFirstDevice(), nil
}
if err_device != nil {
panic(err)
Expand Down

0 comments on commit 65fc0ba

Please sign in to comment.