(feat): big call and chatting stuff #23

Merged
alois merged 33 commits from dev into main 2026-08-01 03:05:40 +03:00
9 changed files with 12 additions and 6 deletions
Showing only changes of commit d355c83c02 - Show all commits

(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
Alois 2026-07-31 15:17:30 +02:00
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24

2
.gitignore vendored
View file

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

View file

@ -24,6 +24,3 @@ dist-ssr
*.sw? *.sw?
.android .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.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)

View file

@ -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",

View file

@ -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;
} }

View file

@ -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,

View file

@ -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}

View file

@ -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

View file

@ -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({}),