-
Notifications
You must be signed in to change notification settings - Fork 36
Dev #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev #8
Conversation
const val matchResultTurboString = "\"content\":" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is different here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the confusion my commit not clear. I have stored a val in here and made a push but found out it is not a good idea and removed it that is why noting has been changed in here.
@@ -5,5 +5,5 @@ import com.chatgptlite.wanted.models.ConversationModel | |||
interface ConversationRepository { | |||
suspend fun fetchConversations() : MutableList<ConversationModel> | |||
fun newConversation(conversation: ConversationModel) : ConversationModel | |||
fun deleteConversation() | |||
fun deleteConversation(index: Int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to use conversationId, it will make sure which conversation is deleted than using index
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I got the feeling that would not be the best approach(The way I was thinking about this: If I add a new conversation and than try to delete after a sec this would require to recall the firebase to find the documentPath id to able to remove it). I have created this code before the message delete function where I'm using the conversationId to remove message from firebase. I will correct this. The project is very interesting thank you for sharing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thank you a lot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad you're interested in this repo! GJ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I added the following improvement to the project.
UI:
Code:
Pre-launch Checklist
Testcases covered (check if passed)
Screenshots (if change UI/UX)