feat: багофикс по запросам волбачия

This commit is contained in:
Jganenokk
2026-08-15 15:51:52 +07:00
parent 198f137826
commit ecaa132e8f
33 changed files with 904 additions and 154 deletions
@@ -188,6 +188,7 @@ class KometNotifier(private val ctx: Context) {
.setWhen(ts)
.setShowWhen(true)
.setNumber(entries.size)
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN)
.setContentTitle("Komet")
.setContentText(boldLine(senderName, text))
.setStyle(inbox)
@@ -250,6 +251,8 @@ class KometNotifier(private val ctx: Context) {
.setIntent(intent)
.setPerson(person)
.setIcon(person.icon)
.setCategories(setOf(ShortcutInfoCompat.SHORTCUT_CATEGORY_CONVERSATION))
.setLocusId(LocusIdCompat(id))
.build()
ShortcutManagerCompat.pushDynamicShortcut(ctx, shortcut)
} catch (e: Exception) {
@@ -312,6 +312,11 @@ class MainActivity : FlutterActivity() {
CallForegroundService.start(applicationContext, caller)
result.success(null)
}
"ensureOngoing" -> {
val caller = call.argument<String>("caller") ?: "Звонок"
CallForegroundService.start(applicationContext, caller)
result.success(null)
}
"setScreenShare" -> {
val enabled = call.argument<Boolean>("enabled") ?: false
val caller = call.argument<String>("caller") ?: "Звонок"