refactor(utils): Remove redundant shortcut code

This commit is contained in:
Cian Ormond
2026-03-29 15:27:37 -04:00
committed by Inhishonor
parent de6015a478
commit d59deeb831
5 changed files with 59 additions and 80 deletions
@@ -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)
}