Skip to content

Commit

Permalink
Re-prioritise TODOs, change default join message.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Jan 30, 2022
1 parent a6dc348 commit 9ad7f14
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- Add command history.
- Reduce bundled icons.
- Finish online mode support.
- Add icon and configure app.json.
- Reduce bundled icons (1.3 MB per APK).
- Fix issue with split-screen when connected.
- Work on replacing auto /spawn with auto commands.
- Handle graceful disconnect when being hit by the OOM killer?
- https://reactnative.dev/docs/performance (esp when logging in)
- https://reactnative.dev/docs/performance (esp when logging in, causes crashes)
5 changes: 2 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ const App = () => {
const [disconnect, setDisconnect] = React.useState<Disconnect | undefined>()

const [settings, setSettings] = useJsonAsyncStorage<Settings>('@settings', {
// TODO: Better defaults and settings e.g. join message is 140 chars (bad for <1.11).
// TODO: Better defaults and settings.
joinMessage:
'I connected using EnderChat, an ad-free, easy to use and well-built ' +
'alternative to ChatCraft for Android! Even this message can be disabled!',
"I'm using EnderChat, a well-built, ad-free ChatCraft alternative! Even this message can be disabled!",
sendJoinMessage: true,
sendSpawnCommand: true,
chatTheme: 'Colorless',
Expand Down
3 changes: 2 additions & 1 deletion src/screens/ChatScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ const ChatScreen = ({ navigation }: { navigation: ChatNavigationProp }) => {
const darkMode = useDarkMode()
const { settings } = useContext(SettingsContext)
const { connection, setConnection } = useContext(ConnectionContext)
const [, setCommandHistory] = useState<string[]>([]) // TODO
// TODO: Show command history.
const [, setCommandHistory] = useState<string[]>([])
const [settingsOpen, setSettingsOpen] = useState(false)
const [messages, setMessages] = useState<Message[]>([])
const [loggedIn, setLoggedIn] = useState(false)
Expand Down

0 comments on commit 9ad7f14

Please sign in to comment.