(feat): add a small zoom to the android app
Some checks failed
/ build-web (push) Failing after 6m40s
/ build-desktop (linux) (push) Failing after 7m12s
/ build-mobile (push) Failing after 9m12s
/ release (push) Has been skipped

(fix): save ReplyId correctly
(qol): update todo
This commit is contained in:
Alois 2026-07-31 15:17:30 +02:00
commit d355c83c02
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
9 changed files with 12 additions and 6 deletions

2
.gitignore vendored
View file

@ -2,3 +2,5 @@ node_modules
releases
.fallow
.direnv
keystore.jks
keystore.properties

View file

@ -24,6 +24,3 @@ dist-ssr
*.sw?
.android
/src-tauri/gen/android/keystore.properties
/src-tauri/gen/android/keystore.jks

View file

@ -5,6 +5,7 @@ import android.os.Bundle
import android.view.ViewGroup
import android.view.ViewTreeObserver
import android.view.WindowManager
import android.webkit.WebView
import android.widget.FrameLayout
import androidx.core.view.ViewCompat
import androidx.core.view.WindowCompat
@ -16,6 +17,10 @@ class MainActivity : TauriActivity() {
private var previousUsableHeight = 0
private var attachLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null
override fun onWebViewCreate(webView: WebView) {
webView.setInitialScale(300)
}
override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, true)
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)

View file

@ -26,7 +26,7 @@
"start-adb:mobile": "cd apps/tauri && pnpm run start-adb:mobile",
"dev:desktop": "cd apps/electron && pnpm run dev",
"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": {
"@eslint/js": "^10.0.1",

View file

@ -142,6 +142,7 @@ export default function CacheSync() {
MessageState: "sent",
SenderId: accountId,
SendTime: Number(request.SendTime),
ReplyId: request.ReplyId ? Number(request.ReplyId) : undefined,
});
return;
}

View file

@ -112,6 +112,7 @@ export default function InputComponent({
Content: encryptedContent,
ReceiverId: userId,
SendTime: time,
...(replyTo && { ReplyId: replyTo }),
}).catch((e) => {
log(0, "Chat", "red", "Failed to send message", e, {
ReceiverId: userId,

View file

@ -487,7 +487,7 @@ export default function Screen() {
<Wrapper
key={getMessageRenderKey(message)}
userId={message.SenderId}
loading={<Skeleton className="w-30 h-5" />}
loading={null}
component={(user) => (
<Message
grouped={isGrouped}

View file

@ -8,6 +8,5 @@
- Confirmation when exiting with text in the input box.
- Add arrow up hotkey to edit last message (req: packages/hotkeys)
- Drop any unique reactions above 10
- Add proper loading skeleton for individual messages
- Reply jumping
- Add emoji picker

View file

@ -314,6 +314,7 @@ export const mtp = {
Content: z.base64(),
ReceiverId: z.number(),
SendTime: z.number(),
ReplyId: z.number().optional(),
Files: z.array(fileFromMessage).optional(),
}),
response: z.object({}),