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:
parent
ab2f0ea838
commit
42e227ee69
17 changed files with 241 additions and 148 deletions
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue