lambiengcode / compose-chatgpt-kotlin-android-chatbot

Compose ChatGPT Kotlin - Android Chatbot using Kotlin + Jetpack Compose + Coroutine + MVVM + Retrofit2 + OpenAI's GPT-3 API. Allow stream response from ChatGPT API.
https://youtube.com/shorts/esLh-n3Ao5U
MIT License
217 stars 31 forks source link

App crashes when you delete any of your chat history #21

Closed 4niso closed 3 months ago

4niso commented 4 months ago

The app works fine but once you go to the menu and click the delete icon to delete any of your chat history, the app crashes. You will then have to run the app again. when the app is back, when you check, you will see that the chat history you tried to delete is still there.

This was noticed on android studio emulator, I have not tried it on a phone to see how this playout.

Please how can this be fix.

Thanks

lambiengcode commented 3 months ago

Please help me check it again in latest code.

4niso commented 3 months ago

Ok Boss, I will check it again and let you know as soon as possible. Thank you for taking your time to look into the code again I appreciate.

Akpaniwo Godfrey M.

:::::> PUBLICATIONS<:::::: Google scholar: https://scholar.google.com/citations?hl=en&user=lrx9UcAAAAAJ Research gate: https://www.researchgate.net/profile/Akpaniwo_Gm

On Fri, 24 May 2024 at 05:45, Kai @.***> wrote:

Please help me check it again in latest code.

— Reply to this email directly, view it on GitHub https://github.com/lambiengcode/compose-chatgpt-kotlin-android-chatbot/issues/21#issuecomment-2128511443, or unsubscribe https://github.com/notifications/unsubscribe-auth/BD2WHZBDBFWNBUCW7QNNS2LZD3AW5AVCNFSM6AAAAABG3QHQFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRYGUYTCNBUGM . You are receiving this because you authored the thread.Message ID: <lambiengcode/compose-chatgpt-kotlin-android-chatbot/issues/21/2128511443@ github.com>

4niso commented 3 months ago

The code is working perfectly now, I have tested it again and again, I deleted several old chats and the app did not crash. Thank you so much for fixing the code. I appreciate