Skip to content

Commit f7b2771

Browse files
committed
chore(fc): add flipchat schema for deeplinks
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent b87b868 commit f7b2771

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

flipchatApp/src/main/AndroidManifest.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@
6060
<data android:pathPrefix="/room" />
6161
</intent-filter>
6262

63+
<intent-filter>
64+
<action android:name="android.intent.action.VIEW" />
65+
<category android:name="android.intent.category.DEFAULT" />
66+
<category android:name="android.intent.category.BROWSABLE" />
67+
68+
<data android:scheme="flipchat" />
69+
<data android:host="app.flipchat.xyz" />
70+
<data android:pathPrefix="/room" />
71+
</intent-filter>
72+
6373
<intent-filter android:autoVerify="true">
6474
<action android:name="android.intent.action.VIEW" />
6575
<category android:name="android.intent.category.DEFAULT" />
@@ -70,6 +80,16 @@
7080
<data android:pathPrefix="/login" />
7181
</intent-filter>
7282

83+
<intent-filter>
84+
<action android:name="android.intent.action.VIEW" />
85+
<category android:name="android.intent.category.DEFAULT" />
86+
<category android:name="android.intent.category.BROWSABLE" />
87+
88+
<data android:scheme="flipchat" />
89+
<data android:host="app.flipchat.xyz" />
90+
<data android:pathPrefix="/login" />
91+
</intent-filter>
92+
7393
<intent-filter android:autoVerify="true">
7494
<action android:name="android.intent.action.VIEW" />
7595
<category android:name="android.intent.category.DEFAULT" />
@@ -79,6 +99,16 @@
7999
<data android:host="app.flipchat.xyz" />
80100
<data android:pathPrefix="/user" />
81101
</intent-filter>
102+
103+
<intent-filter>
104+
<action android:name="android.intent.action.VIEW" />
105+
<category android:name="android.intent.category.DEFAULT" />
106+
<category android:name="android.intent.category.BROWSABLE" />
107+
108+
<data android:scheme="flipchat" />
109+
<data android:host="app.flipchat.xyz" />
110+
<data android:pathPrefix="/user" />
111+
</intent-filter>
82112
</activity>
83113

84114
<!--

libs/models/src/main/kotlin/com/getcode/model/chat/MessageContent.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ sealed interface MessageContent {
1515

1616
val content: String
1717

18+
data class Unknown(
19+
override val isFromSelf: Boolean,
20+
): MessageContent {
21+
override val kind: Int = -1
22+
override val content: String
23+
get() = "unknown"
24+
}
25+
1826
@Serializable
1927
data class Localized(
2028
val value: String,
@@ -371,7 +379,7 @@ sealed interface MessageContent {
371379
val data = Json.decodeFromString<DeletedMessage.Content>(content)
372380
DeletedMessage(data.originalMessageId, data.messageDeleter, isFromSelf)
373381
}
374-
else -> null
382+
else -> Unknown(isFromSelf)
375383
}
376384
}
377385
}

0 commit comments

Comments
 (0)