(feat): add a small zoom to the android app
(fix): save ReplyId correctly (qol): update todo
This commit is contained in:
parent
6f03604c90
commit
d355c83c02
9 changed files with 12 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,3 +2,5 @@ node_modules
|
||||||
releases
|
releases
|
||||||
.fallow
|
.fallow
|
||||||
.direnv
|
.direnv
|
||||||
|
keystore.jks
|
||||||
|
keystore.properties
|
||||||
|
|
|
||||||
3
apps/tauri/.gitignore
vendored
3
apps/tauri/.gitignore
vendored
|
|
@ -24,6 +24,3 @@ dist-ssr
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
.android
|
.android
|
||||||
|
|
||||||
/src-tauri/gen/android/keystore.properties
|
|
||||||
/src-tauri/gen/android/keystore.jks
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import android.os.Bundle
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.view.ViewTreeObserver
|
import android.view.ViewTreeObserver
|
||||||
import android.view.WindowManager
|
import android.view.WindowManager
|
||||||
|
import android.webkit.WebView
|
||||||
import android.widget.FrameLayout
|
import android.widget.FrameLayout
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowCompat
|
import androidx.core.view.WindowCompat
|
||||||
|
|
@ -16,6 +17,10 @@ class MainActivity : TauriActivity() {
|
||||||
private var previousUsableHeight = 0
|
private var previousUsableHeight = 0
|
||||||
private var attachLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null
|
private var attachLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null
|
||||||
|
|
||||||
|
override fun onWebViewCreate(webView: WebView) {
|
||||||
|
webView.setInitialScale(300)
|
||||||
|
}
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
WindowCompat.setDecorFitsSystemWindows(window, true)
|
WindowCompat.setDecorFitsSystemWindows(window, true)
|
||||||
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)
|
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
"start-adb:mobile": "cd apps/tauri && pnpm run start-adb:mobile",
|
"start-adb:mobile": "cd apps/tauri && pnpm run start-adb:mobile",
|
||||||
"dev:desktop": "cd apps/electron && pnpm run dev",
|
"dev:desktop": "cd apps/electron && pnpm run dev",
|
||||||
"build:desktop": "cd apps/electron && pnpm run package",
|
"build:desktop": "cd apps/electron && pnpm run package",
|
||||||
"delete:mobile": "cd apps/tauri && nix develop ../..#tauri --command adb uninstall net.tensamin.client"
|
"delete:mobile": "cd apps/tauri && nix develop ../..#tauri --command adb uninstall net.tensamin.client.dev"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^10.0.1",
|
"@eslint/js": "^10.0.1",
|
||||||
|
|
|
||||||
1
packages/cache/src/sync.tsx
vendored
1
packages/cache/src/sync.tsx
vendored
|
|
@ -142,6 +142,7 @@ export default function CacheSync() {
|
||||||
MessageState: "sent",
|
MessageState: "sent",
|
||||||
SenderId: accountId,
|
SenderId: accountId,
|
||||||
SendTime: Number(request.SendTime),
|
SendTime: Number(request.SendTime),
|
||||||
|
ReplyId: request.ReplyId ? Number(request.ReplyId) : undefined,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ export default function InputComponent({
|
||||||
Content: encryptedContent,
|
Content: encryptedContent,
|
||||||
ReceiverId: userId,
|
ReceiverId: userId,
|
||||||
SendTime: time,
|
SendTime: time,
|
||||||
|
...(replyTo && { ReplyId: replyTo }),
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
log(0, "Chat", "red", "Failed to send message", e, {
|
log(0, "Chat", "red", "Failed to send message", e, {
|
||||||
ReceiverId: userId,
|
ReceiverId: userId,
|
||||||
|
|
|
||||||
|
|
@ -487,7 +487,7 @@ export default function Screen() {
|
||||||
<Wrapper
|
<Wrapper
|
||||||
key={getMessageRenderKey(message)}
|
key={getMessageRenderKey(message)}
|
||||||
userId={message.SenderId}
|
userId={message.SenderId}
|
||||||
loading={<Skeleton className="w-30 h-5" />}
|
loading={null}
|
||||||
component={(user) => (
|
component={(user) => (
|
||||||
<Message
|
<Message
|
||||||
grouped={isGrouped}
|
grouped={isGrouped}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,5 @@
|
||||||
- Confirmation when exiting with text in the input box.
|
- Confirmation when exiting with text in the input box.
|
||||||
- Add arrow up hotkey to edit last message (req: packages/hotkeys)
|
- Add arrow up hotkey to edit last message (req: packages/hotkeys)
|
||||||
- Drop any unique reactions above 10
|
- Drop any unique reactions above 10
|
||||||
- Add proper loading skeleton for individual messages
|
|
||||||
- Reply jumping
|
- Reply jumping
|
||||||
- Add emoji picker
|
- Add emoji picker
|
||||||
|
|
|
||||||
|
|
@ -314,6 +314,7 @@ export const mtp = {
|
||||||
Content: z.base64(),
|
Content: z.base64(),
|
||||||
ReceiverId: z.number(),
|
ReceiverId: z.number(),
|
||||||
SendTime: z.number(),
|
SendTime: z.number(),
|
||||||
|
ReplyId: z.number().optional(),
|
||||||
Files: z.array(fileFromMessage).optional(),
|
Files: z.array(fileFromMessage).optional(),
|
||||||
}),
|
}),
|
||||||
response: z.object({}),
|
response: z.object({}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue