derricw / siggo

a TUI for signal messenger, written in Go
GNU General Public License v3.0
320 stars 9 forks source link

Panic when starting siggo #16

Closed isovector closed 4 years ago

isovector commented 4 years ago

I've just linked siggo, and am running into an immediate panic when trying to run it:

$ siggo

panic: no conversation for current contact

goroutine 1 [running]:
github.com/derricw/siggo/widgets.(*ChatWindow).update(0xc0002b8630)
    github.com/derricw/siggo/widgets/chatwindow.go:457 +0xbe
github.com/derricw/siggo/widgets.NewChatWindow(0xc00006c8c0, 0xc0001a8380, 0xc000062ba0)
    github.com/derricw/siggo/widgets/chatwindow.go:696 +0x93e
github.com/derricw/siggo/cmd.glob..func10(0x55d14ad71180, 0x55d14adc71f0, 0x0, 0x0)
    github.com/derricw/siggo/cmd/root.go:95 +0x24d
github.com/spf13/cobra.(*Command).execute(0x55d14ad71180, 0xc0000121d0, 0x0, 0x0, 0x55d14ad71180, 0xc0000121d0)
    github.com/spf13/cobra@v0.0.7/command.go:842 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x55d14ad71180, 0x55d14a571625, 0xc00006e058, 0x0)
    github.com/spf13/cobra@v0.0.7/command.go:943 +0x336
github.com/spf13/cobra.(*Command).Execute(...)
    github.com/spf13/cobra@v0.0.7/command.go:883
github.com/derricw/siggo/cmd.Execute()
    github.com/derricw/siggo/cmd/root.go:119 +0x2f
main.main()
    github.com/derricw/siggo/main.go:8 +0x25

My config is the default:

$ cat ~/.config/siggo/config.yml

user_number: "+elided"
user_name: self
save_messages: false
desktop_notifications: false
desktop_notifications_show_message: false
desktop_notifications_show_avatar: false
terminal_bell_notifications: false
max_coversation_length: 0
hide_panel_titles: false
hide_phone_numbers: false
contact_colors: {}
contact_aliases: {}
log_file: ""

but with my phone number instead of elided.

I don't really understand the signal protocol, but I've been running signal-desktop on a separate machine using signal-cli to register everything in the first place. This machine is now linked to that instance of signal-cli.

derricw commented 4 years ago

yo! hey @isovector sorry i missed this. I will take a look tomorrow and see if I can't figure it out.

derricw commented 4 years ago

have you run signal-cli -u +<yourphonenumber> receive --json ?

isovector commented 4 years ago

I hadn't. But I just did and it dumped a bunch of things, but siggo still fails with the same error.

derricw commented 4 years ago

ok, I am able to reproduce this!

derricw commented 4 years ago

Hey @isovector , would you mind pulling master and checking to see if this is fixed? I'll go ahead and build a new release for this.

derricw commented 4 years ago

Ok its been a month with no new info on this, so I'm going to close this one for now. Feel free to reopen it if it continues to happen after pulling master.