Commit Graph
141 Commits
Author SHA1 Message Date
callebtc cdab3e9b97 no prologue 2025-07-19 19:30:11 +02:00
callebtc 342796dc01 hashing 2025-07-19 19:03:26 +02:00
callebtc a19b4dc991 remove trash 2025-07-19 15:56:16 +02:00
callebtc 6b853a253c simplify counter 2025-07-19 15:21:06 +02:00
callebtc e5963843e1 fix imports 2025-07-19 15:00:21 +02:00
callebtc 30569be02c use fork 2025-07-19 13:19:38 +02:00
callebtc 508654db22 buffers 2025-07-19 11:46:13 +02:00
callebtc 97c345aea7 noise handshake one step further 2025-07-19 11:19:41 +02:00
callebtc b80c2cbcbe Merge branch 'main' into noise 2025-07-19 10:20:01 +02:00
callebtcandGitHub 87ce65b4b1 Merge pull request #147 from gsmnit/code_readiblity_improvement
1. remove unused methods in MainActivity.kt
2025-07-19 09:48:17 +02:00
callebtcandGitHub 6c4473f174 Merge pull request #142 from hector6872/fix/messages-list-content-padding
Fix content padding in messages list
2025-07-19 09:47:00 +02:00
callebtcandGitHub 93ad575610 Merge pull request #139 from alpermelkeli/refactor/remove-static-context-field
refactor: remove context attribute at ChatViewModel.kt
2025-07-19 09:44:55 +02:00
callebtcandGitHub e1bafcf1a5 Merge branch 'main' into code_readiblity_improvement 2025-07-19 09:41:09 +02:00
callebtcandGitHub 04a774ac63 Merge pull request #120 from anonfaded/fix/wrong-cursor-location
Fix: wrong cursor location, added battery optimization disabling screen and styling to the slash command in input field
2025-07-19 09:33:10 +02:00
callebtc d8d834b713 bump to 0.7.1 2025-07-19 09:20:57 +02:00
ganpat singhandGitHub f657c6247f Merge branch 'main' into code_readiblity_improvement 2025-07-18 10:57:13 +05:30
Faded 7972439c14 Merge branch 'main' into fix/wrong-cursor-location 2025-07-18 05:19:19 +05:00
callebtcandGitHub 50cbb69e9e Merge pull request #145 from moehamade/fix/toolbar-center-align-141
fix: center align toolbar item in ChatHeader
2025-07-18 00:08:09 +02:00
callebtcandGitHub 478a1fe5ce Merge pull request #136 from joaodematejr/fix-sidebar-text
fix: update sidebar text to use string resources
2025-07-18 00:01:29 +02:00
callebtcandGitHub 01d6a81003 Merge pull request #129 from moehamade/127-Onboarding-state-is-lost-on-configuration-change-due-to-variables-in-MainActivity
Refactor: Introduce MainViewModel for onboarding state management
2025-07-17 23:59:28 +02:00
ganpatsingh 3fddb3f594 1. remove unused methods in MainActivity.kt
2. replace android.util.log with log
2025-07-18 00:50:57 +05:30
callebtc 02ea3771b5 std lib for noise 2025-07-17 13:39:22 +02:00
callebtc 176ceab044 wip fixes for noise 2025-07-17 13:21:53 +02:00
Mohamad Hamade 0611baa681 fix: center align toolbar item in ChatHeader
- passed modifier.fillmaxHeight so the content inside the row can actually be centered
2025-07-17 13:49:31 +03:00
callebtc 03ac7ba09b wip noise 2025-07-17 11:36:40 +02:00
callebtc 10e5e9fff3 8 byte peer ID 2025-07-17 03:18:28 +02:00
callebtc 7681d96df2 fix peer ID 2025-07-17 03:14:10 +02:00
callebtc 9cc73722c4 subnet 2025-07-17 03:08:51 +02:00
callebtc 113cb47455 werk 2025-07-17 01:30:59 +02:00
callebtc ad36ee50d2 barely working 2025-07-17 01:18:57 +02:00
callebtc 91da39817f better 2025-07-17 01:04:39 +02:00
callebtc f4d00fed67 wip: use subnet 2025-07-17 00:34:20 +02:00
Hector de Isidro 305b334244 Remove redundant @OptIn annotation 2025-07-17 00:20:09 +02:00
Hector de Isidro f2a8f86f17 Use HorizontalDivider instead of deprecated Divider 2025-07-17 00:17:56 +02:00
Hector de Isidro 37e3852f40 Use contentPadding instead of padding so items remain fully visible 2025-07-17 00:11:26 +02:00
Hector de Isidro 15a989c5cd Remove unnecessary Box wrapper 2025-07-17 00:08:20 +02:00
Hector de Isidro d0dac19119 Replace BoxWithConstraints with Box since constraints are unused 2025-07-17 00:07:04 +02:00
alpermelkeli eb575182c6 refactor: remove context attribute at ChatViewModel.kt 2025-07-16 18:30:26 +03:00
callebtc a06bb32e26 better 2025-07-16 16:33:47 +02:00
callebtc d76644e58a temporary 2025-07-16 16:01:49 +02:00
callebtc abbe89a00f noise 2025-07-16 14:27:57 +02:00
callebtc 4aa27c4100 works? 2025-07-16 14:20:54 +02:00
callebtc 57f870fff9 noise 2025-07-16 14:04:59 +02:00
Mohamad Hamade d730acbb79 Refactor: Migrate MainViewModel to use StateFlow
This commit refactors the `MainViewModel` to use `StateFlow` instead of `mutableStateOf` for managing its observable properties. This change improves the way UI state is handled and observed, aligning with modern Android development best practices.

Additionally, `OnboardingState.kt` has been moved to the `onboarding` package for better organization.
2025-07-16 01:13:42 +03:00
João Dematé Jr b14eb9006b fix: update sidebar text to use string resources 2025-07-15 18:47:32 -03:00
Mohamad Hamade 17472a1854 Refactor: Remove unused tripleClickCount state variable
The `tripleClickCount` mutable state variable in the `ChatHeader` composable was not being used and has been removed to simplify the code
2025-07-15 13:18:29 +03:00
Mohamad Hamade 245181d736 Refactor: Introduce MainViewModel for onboarding state management
This commit introduces a `MainViewModel` to manage the UI state for the onboarding flow. This change centralizes the onboarding state (including Bluetooth status, location status, error messages, and loading indicators) within the ViewModel, allowing it to survive configuration changes and simplifying state management within `MainActivity`.

Key changes:
- Created `MainViewModel.kt` to hold and manage onboarding-related UI state.
- Moved onboarding state variables (e.g., `onboardingState`, `bluetoothStatus`, `locationStatus`) from `MainActivity` to `MainViewModel`.
- Updated `MainActivity` to observe and update onboarding state through the `MainViewModel`.
- Created `OnboardingState.kt` to define the possible states of the onboarding process.
- Ensured that the onboarding process is not restarted on configuration changes by checking `mainViewModel.onboardingState` before initiating.
2025-07-15 02:24:41 +03:00
Mohamad Hamade 0a33bd734d Bugfix: Handled single or triple clicked at once instead of executing them as separate events
This commit introduces a new `singleOrTripleClickable` Modifier extension function.

This function allows distinguishing between single and triple clicks on a Composable element.

The `ChatHeader` was updated to utilize this new Modifier for handling clicks on the "bitchat*" title, where a single click shows app info and a triple click triggers a separate action.
2025-07-14 22:16:19 +03:00
Faded 21dc1a5b5e fix(chat): cursor location and enhance message input with slash command styling
- Change message input from String to TextFieldValue for better cursor control
- Add SlashCommandVisualTransformation to style slash commands with colored backgrounds
- Maintain cursor position when selecting command suggestions
2025-07-14 15:51:50 +05:00
Faded fe57c5684e feat(battery): add battery optimization management for background reliability
Add battery optimization permission and management system to ensure app runs reliably in background:
- Add REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission
- Create BatteryOptimizationManager to handle battery optimization checks and requests
- Add battery optimization UI screens and flow in onboarding
- Integrate battery optimization checks into MainActivity flow
2025-07-14 14:23:59 +05:00