1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3696 Invite link | Onboarding flow with a no approval invite link (#2469)

This commit is contained in:
Konstantin Ivanov 2025-05-27 10:13:05 +02:00 committed by konstantiniiv
parent ab2f0ea838
commit 42e227ee69
17 changed files with 241 additions and 148 deletions

View file

@ -0,0 +1,23 @@
package com.anytypeio.anytype.domain.deeplink
import javax.inject.Inject
import javax.inject.Singleton
/**
* Store for keeping pending invite deeplinks in memory.
* This is used to handle invite deeplinks that were received while user was not logged in.
*/
@Singleton
class PendingIntentStore @Inject constructor() {
private var deepLinkInvite: String? = null
fun setDeepLinkInvite(link: String?) {
deepLinkInvite = link
}
fun getDeepLinkInvite(): String? = deepLinkInvite
fun clearDeepLinkInvite() {
deepLinkInvite = null
}
}