Skip to content

Commit

Permalink
Merge pull request #40 from aqasemi/master
Browse files Browse the repository at this point in the history
Fix: logical bug. if no JID provided getFirstDevice instead of creati…
  • Loading branch information
krypton-byte authored Aug 18, 2024
2 parents 55cafd1 + 65fc0ba commit a21d3b8
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 a21d3b8

Please sign in to comment.