(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
|
||||
.fallow
|
||||
.direnv
|
||||
keystore.jks
|
||||
keystore.properties
|
||||
|
|
|
|||
3
apps/tauri/.gitignore
vendored
3
apps/tauri/.gitignore
vendored
|
|
@ -24,6 +24,3 @@ dist-ssr
|
|||
*.sw?
|
||||
|
||||
.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.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)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
1
packages/cache/src/sync.tsx
vendored
1
packages/cache/src/sync.tsx
vendored
|
|
@ -142,6 +142,7 @@ export default function CacheSync() {
|
|||
MessageState: "sent",
|
||||
SenderId: accountId,
|
||||
SendTime: Number(request.SendTime),
|
||||
ReplyId: request.ReplyId ? Number(request.ReplyId) : undefined,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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({}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue