Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class ChatRepository @Inject internal constructor(
timestamp = System.currentTimeMillis(),
),
)
notificationHelper.pushShortcut(detail.firstContact, PushReason.OutgoingMessage)
notificationHelper.pushShortcut(detail.firstContact, pushReason)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The change from a fixed PushReason.OutgoingMessage to a parameter pushReason makes the function more versatile. Ensure that all call sites are updated to pass the correct pushReason value. Consider adding a comment explaining the purpose of the pushReason parameter for better readability.

Suggested change
notificationHelper.pushShortcut(detail.firstContact, pushReason)
notificationHelper.pushShortcut(detail.firstContact, pushReason) // Use the provided push reason

}

private suspend fun getMessageHistory(chatId: Long): List<Content> {
Expand Down