aboutsummaryrefslogtreecommitdiff
path: root/components/app.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* components/app: warn when username is missing for OAuth introspectionSimon Ser2024-06-251-0/+3
| | | | Makes things easier to debug.
* components/app: fix STATUSMSG NOTICE when target buffer is closedSimon Ser2024-04-301-7/+8
|
* components/app: update prevReadReceipt only when switching bufferSimon Ser2024-04-251-9/+8
| | | | | We don't want the unread separator to move around when the tab gets focus, for instance.
* Show number of highlights in window titlesitting332024-04-251-2/+24
| | | | | Co-authored-by: Simon Ser <contact@emersion.fr> Closes: https://todo.sr.ht/~emersion/gamja/134
* components/app: include bouncer network name in window titleSimon Ser2024-04-251-3/+17
| | | | Co-authored-by: sitting33 <me@sit.sh>
* components/app: introduce updateDocumentTitle()Simon Ser2024-04-251-5/+10
| | | | | The logic in here will get more involved once we add unread counts and such.
* Don't mark messages as read when window is not in focussitting332024-04-251-1/+6
|
* components/app: split switchBuffer() and markBufferAsRead()sitting332024-04-251-23/+38
| | | | We'll want to mark as read independently in response to focus events.
* Hide replies to our own internal WHO commandsSimon Ser2024-04-171-0/+6
| | | | References: https://todo.sr.ht/~emersion/gamja/88
* Add support for soju.im/filehostSimon Ser2024-04-161-0/+6
| | | | | | For now, only handle paste events containing files. Co-authored-by: Alex McGrath <amk@amk.ie>
* components/app: throttle our focus PINGsSimon Ser2023-11-261-0/+8
|
* Fix ReferenceError when adding new bouncer networkSimon Ser2023-10-031-2/+2
| | | | | | | Fixes the following: ReferenceError: can't access lexical declaration 'client' before initialization handleNetworkSubmit app.js:1868
* Show MONITOR online/offline notifications in user buffersSimon Ser2023-08-251-4/+11
| | | | | We were only showing QUIT, which was weird because it wouldn't say when the user becomes online again. Use MONITOR instead.
* Send PING on window focusSimon Ser2023-06-231-0/+11
| | | | References: https://todo.sr.ht/~emersion/gamja/148
* Add buffer switcherSimon Ser2023-06-081-0/+20
|
* Keep closed buffers in storeSimon Ser2023-06-081-12/+20
| | | | | | This retains their delivery receipts. Closes: https://todo.sr.ht/~emersion/gamja/154
* components/app: prevent multiple WHO channel commands in parallelSimon Ser2023-04-191-3/+11
| | | | References: https://todo.sr.ht/~emersion/gamja/152
* Migrate to async/awaitSimon Ser2023-04-191-83/+82
|
* Don't perform OAuth redirection after server meteadata errorSimon Ser2023-03-101-0/+1
|
* components/app: ensure msg.tags is initializedGiorgi Taba Kobakhidze2023-02-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the following error when sending a message on a server without echo-message: Uncaught TypeError: t.tags is undefined prepareChatMessage app.js:602 handleChatMessage app.js:616 privmsg app.js:1514 handleComposerSubmit app.js:1535 handleSubmit composer.js:30 Preact 15 handleMessage app.js:1013 connect app.js:791 handleMessage client.js:448 reconnect client.js:176 reconnect client.js:174 Yt client.js:151 connect app.js:754 handleConnectSubmit app.js:1279 handleSubmit connect-form.js:74 Preact 16 handleConfig app.js:382 <anonymous> app.js:238 promise callback* app.js:237 Preact 4 <anonymous> main.js:4
* Skip regular chat message handling for infinite scrollSimon Ser2022-11-301-10/+44
| | | | | | | | Infinite scroll is special: it shouldn't trigger notifications. Additionally we need to avoid sending on MARKREAD command per message in the chathistory batch. Split chat message handling into separate functions.
* Move msg.tags fallback to clientSimon Ser2022-11-301-3/+0
|
* Make first server check more robust when disconnectingSimon Ser2022-11-301-1/+2
| | | | A disconnect/reconnect cycle will bump the server ID.
* Close settings dialog when disconnectingSimon Ser2022-11-301-2/+8
|
* Remove unnecessary whoChannelBuffer() callSimon Ser2022-10-231-3/+1
| | | | | switchBuffer() will do that already, no need to do it manually here. We risk sending two duplicate WHO commands.
* Load initial members state via WHO when channel is selectedSimon Ser2022-10-231-1/+17
| | | | Closes: https://todo.sr.ht/~emersion/gamja/13
* Add support for OAuth 2.0 authenticationSimon Ser2022-10-141-1/+93
|
* components/app: switch off loading state atomicallySimon Ser2022-09-121-3/+1
| | | | | Set connectParams together with loading, to avoid intermediate state where loading = false but connectParams isn't set yet.
* Display error in loading stateSimon Ser2022-09-121-1/+5
|
* Add config option to generate random nicknameSimon Ser2022-09-121-0/+8
| | | | Closes: https://todo.sr.ht/~emersion/gamja/136
* Remove unnecessary if in App.handleConfigSimon Ser2022-09-121-25/+23
| | | | | config.json is merged with baseConfig. The latter is guaranteed to contain a "server" field.
* Disallow server.{autoconnect,auth} mismatch in config.jsonSimon Ser2022-09-121-0/+5
| | | | This combination doesn't make sense.
* Drop support for soju.im/readSimon Ser2022-09-031-2/+0
| | | | It's been superseded by draft/read-marker.
* Fix ignored MARKREAD messagesSimon Ser2022-09-031-1/+1
| | | | | | | The prefix is a remnant of the soju extension. The IRCv3 one doesn't have it. Fixes: 1428ec4d4991 ("Add support for draft/read-marker")
* Fetch read marker before backlog for user targetsSimon Ser2022-09-031-0/+6
|
* Limit composer lengthSimon Ser2022-08-281-0/+5
| | | | Often times IRC servers will truncate messages which are too big.
* Make use of destBuffers when fetching history.xse2022-08-221-1/+1
| | | | Fixes an issue where messages intended to go on the server's buffer end up on their own
* Ignore RPL_CHANNEL_URLSimon Ser2022-08-221-0/+1
|
* components/app: don't open buffer for CTCP messagesSimon Ser2022-08-221-2/+13
| | | | | These are usually completely uninteresting messages, e.g. CTCP VERSION or whatever.
* Add support for draft/read-markerSimon Ser2022-07-011-10/+6
| | | | References: https://github.com/ircv3/ircv3-specifications/pull/489
* Support @+draft/channel-contextdelthas2022-06-281-1/+6
| | | | See: https://github.com/ircv3/ircv3-specifications/pull/498
* Add button to enable protocol handler in settingsSimon Ser2022-06-271-1/+10
|
* Add a setting for seconds in timestampsSimon Ser2022-06-271-2/+8
|
* Add a settings dialogSimon Ser2022-06-081-2/+40
| | | | | | Add an option to hide chat events or always expand them. Closes: https://todo.sr.ht/~emersion/gamja/73
* Fix ping config lost in ConnectFormSimon Ser2022-06-081-0/+7
| | | | | Reported-by: xse <xse@riseup.net> References: https://lists.sr.ht/~emersion/public-inbox/patches/32126
* components/app: switch to server buffer on close only if activeUmar Getagazov2022-06-081-1/+3
| | | | | If the buffer that's being closed is not the active one, there's no point in switching the user away to another buffer.
* Update webpage title when switching bufferSimon Ser2022-04-221-0/+12
|
* Handle CHATHISTORY messages when reaching end of batchSimon Ser2022-04-221-7/+14
| | | | Closes: https://todo.sr.ht/~emersion/gamja/115
* Convert remaining simple quotes to double quotesSimon Ser2022-02-261-2/+2
|
* components/app: fix missing semicolonsSimon Ser2022-02-211-2/+2
|