aboutsummaryrefslogtreecommitdiff
path: root/components/app.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactor backlog fetching into functionSimon Ser2022-02-131-35/+45
|
* Prevent hole in history when reconnectingSimon Ser2022-02-131-1/+10
|
* Update stored unread status on READ messageSimon Ser2022-02-121-6/+9
|
* state: add isReceiptBeforeSimon Ser2022-02-121-8/+5
|
* keybindings: fix error on alt+hSimon Ser2022-02-121-11/+1
| | | | | | Fixes the following JS error: TypeError: e.setReceipt is not a function
* components/app: move lastErrorID declaration downSimon Ser2022-02-111-2/+2
| | | | | Move it right before App, rather than drown in-between unrelated functions.
* components/app: stop updating prevReadReceipt on READ messageSimon Ser2022-02-111-6/+5
| | | | | prevReadReceipt is used for the unread marker. Let's not update it before the user switches the current buffer.
* Don't fetch backlog before read receiptSimon Ser2022-02-111-1/+9
|
* components/app: introduce getReceiptSimon Ser2022-02-111-6/+12
|
* components/app: close notifications when receiving READ messageSimon Ser2022-02-111-0/+8
|
* components/app: close notifications when switching bufferSimon Ser2022-02-111-1/+14
|
* components/app: make showNotification return null on errorSimon Ser2022-02-111-21/+25
| | | | | We'll do more involved stuff with notifications soon, and don't want to deal with buggy notification objects.
* components/app: include server ID in notification tagsSimon Ser2022-02-111-2/+2
|
* Add support for soju.im/readSimon Ser2022-02-111-6/+76
|
* Refactor receiptsSimon Ser2022-02-111-85/+39
| | | | | They are now saved in the buffer store to allow for proper server separation.
* Introduce isMessageBeforeReceiptSimon Ser2022-02-111-3/+3
|
* components/app: introduce receiptFromMessageSimon Ser2022-02-111-2/+12
|
* Fix unread marker going backSimon Ser2022-02-111-1/+1
| | | | | | Receipts must never go back in time. Fixes: c428e504fe9c ("Don't show unread marker for outgoing messages")
* components/app: make switchBuffer state changes atomicSimon Ser2022-02-111-6/+7
| | | | | Instead of calling App.setBufferState inside the App.setState callback invoked when the update is done, call State.updateBuffer.
* fix ping after reconnectДамјан Георгиевски2022-02-041-4/+4
| | | | | | | | | client.setPingInterval was only called once in app.connect(), but client.disconnect() disables it, and the ping timer is never again set, even though the client can reconnect. the change passes the ping time as a parameter to the client, and the client calls setPingInterval() after a successful WS open event.
* state: add bouncerNetworks helpersSimon Ser2022-02-041-8/+3
|
* commands: add password param to /joindelthas2022-02-021-2/+2
|
* Display persistant command input on server bufferNoelle Leigh2021-12-211-3/+6
| | | | | | | | | | | | This commit changes the composer to not be read-only on the server buffer, which tells the user that they can send commands from that view. On the server buffer, the placeholder is changed to "Type a command (see /help)", which indicates to the user that this buffer only accepts commands, and gives them a hint for how to learn what commands are available. Implements: https://todo.sr.ht/~emersion/gamja/38
* lib/irc: add CapRegistrySimon Ser2021-12-101-8/+8
|
* Add reconnect buttonSimon Ser2021-12-071-0/+1
|
* Move isBouncer props to server stateSimon Ser2021-12-071-10/+3
| | | | Avoids having to pass this around.
* Refactor ISUPPORT handlingSimon Ser2021-12-071-6/+6
| | | | | | Add a helper class to parse ISUPPORT tokens. Instead of having manual ISUPPORT handling all over the place, use pre-processed values.
* lib/client: use Error objects for error eventsSimon Ser2021-12-061-2/+15
|
* Add Client.join, show join errors in popupSimon Ser2021-12-041-2/+4
|
* Disable debug logs in productionSimon Ser2021-12-011-0/+15
| | | | | | | | | | | console.debug logs cause some performance issues because the browser is forced to save the logged objects just in case the user opens the debugging tools. They can be force-enabled back by adding ?debug=1 to the URL. Only console.debug is disabled, console.log and other levels are a lot less verbose and still enabled by default.
* Mark auth dialog as loadingSimon Ser2021-11-301-15/+23
|
* Mark register/verify dialogs as loadingSimon Ser2021-11-301-4/+33
|
* Add link to verify account next to VERIFICATION_REQUIRED messageSimon Ser2021-11-301-1/+7
|
* Add support for draft/account-registrationSimon Ser2021-11-301-0/+65
| | | | A new UI to register and verify accounts is added.
* Clear channel joined field when disconnectedSimon Ser2021-11-291-1/+16
|
* Ignore RPL_AWAYSimon Ser2021-11-231-0/+1
|
* Add post-connect UI to login via SASLSimon Ser2021-11-211-2/+42
| | | | | | | | If the server supports SASL and if we aren't logged in with any account, add a UI to authenticate via SASL. This allows users to login anonymously then login via SASL. This will also ease the draft/account-registration implementation.
* Auto-dismiss client error on reconnectSimon Ser2021-11-171-11/+31
| | | | References: https://todo.sr.ht/~emersion/gamja/74
* Properly handle port in irc:// URLsSimon Ser2021-11-161-2/+25
|
* Add UI to enable protocol handlerSimon Ser2021-11-161-0/+1
|
* Don't stop fetching backlog on errorSimon Ser2021-11-101-2/+3
| | | | | | | Some servers allow fetching history from some targets but not others. Don't completely stop fetching chat history on error. The root cause was a variable shadowing in Client.fetchBatch.
* Request WHO info w/ empty message list in switchBufferSimon Ser2021-11-081-11/+10
|
* Don't auto-join without prompting userSimon Ser2021-11-081-3/+14
|
* Add "open" URL paramSimon Ser2021-11-081-17/+62
| | | | | This can be set to an irc:// URL to open. This is useful for bouncers.
* Ask confirmation before JOIN on irc:// link clickSimon Ser2021-11-081-11/+7
|
* Auto-join when adding new network on irc:// link clickSimon Ser2021-11-071-8/+40
| | | | Closes: https://todo.sr.ht/~emersion/gamja/111
* s/var/let/Simon Ser2021-11-071-1/+1
|
* Disconnect previous server on connect re-submitSimon Ser2021-11-071-0/+6
|
* Keep track of channel join statusSimon Ser2021-11-051-4/+14
| | | | | This makes us behave better when we receive a self-PART message from the server.
* Route self-NICK messages to server bufferSimon Ser2021-11-031-0/+3
|