Skip to content

Commit

Permalink
create message only after conversation creating
Browse files Browse the repository at this point in the history
  • Loading branch information
migulyaev committed Sep 21, 2023
1 parent d8e37de commit 905616f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ class ConversationsRepositoryImpl @Inject constructor(
recipientVeraId = recipient.contactVeraId,
sentAt = LocalDateTime.now(),
)
messagesDao.insert(message)
conversationsDao.createNewConversation(conversation)
messagesDao.insert(message)

awalaManager.sendMessage(
outgoingMessage = AwalaOutgoingMessage(
Expand Down

0 comments on commit 905616f

Please sign in to comment.