mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 19:38:52 +01:00
refactor(utils): Remove redundant shortcut code
This commit is contained in:
@@ -72,7 +72,7 @@ class SendNewMessage @Inject constructor(
|
||||
conversationRepo.markUnarchived(threadIds)
|
||||
|
||||
AndroidSchedulers.mainThread().scheduleDirect {
|
||||
threadIds.forEach { shortcutManager.reportShortcutUsed(it) }
|
||||
threadIds.forEach { shortcutManager.getOrCreateShortcut(it) }
|
||||
}
|
||||
|
||||
// delete attachment local files, if any, because they're saved to mms db by now
|
||||
|
||||
@@ -28,6 +28,4 @@ interface ShortcutManager {
|
||||
|
||||
fun getOrCreateShortcut(threadId: Long): ShortcutInfoCompat?
|
||||
|
||||
fun reportShortcutUsed(threadId: Long)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user