keybase / go-keybase-chat-bot

Official Go Keybase chat bot SDK
BSD 3-Clause "New" or "Revised" License
111 stars 38 forks source link

Make sure msg.Msg exists before checking content type #76

Closed kf5grd closed 2 years ago

kf5grd commented 2 years ago

This fixes a bug in (*API).GetTextMessages where a nil pointer exception occurs when an already-exploded message is fetched from a conversation. After a message has exploded, the api returns an Error instead of a Msg.