aboutsummaryrefslogtreecommitdiff
path: root/components (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-02-12state: add isReceiptBeforeSimon Ser2-8/+18
2022-02-12keybindings: fix error on alt+hSimon Ser3-17/+19
Fixes the following JS error: TypeError: e.setReceipt is not a function
2022-02-11components/app: move lastErrorID declaration downSimon Ser1-2/+2
Move it right before App, rather than drown in-between unrelated functions.
2022-02-11components/app: stop updating prevReadReceipt on READ messageSimon Ser1-6/+5
prevReadReceipt is used for the unread marker. Let's not update it before the user switches the current buffer.
2022-02-11store: fix no-op read receipt update detectionSimon Ser1-1/+1
If the old and new times are equal, the update is a no-op.
2022-02-11Don't fetch backlog before read receiptSimon Ser1-1/+9
2022-02-11components/app: introduce getReceiptSimon Ser1-6/+12
2022-02-11components/app: close notifications when receiving READ messageSimon Ser1-0/+8
2022-02-11components/app: close notifications when switching bufferSimon Ser1-1/+14
2022-02-11components/app: make showNotification return null on errorSimon Ser1-21/+25
We'll do more involved stuff with notifications soon, and don't want to deal with buggy notification objects.
2022-02-11components/app: include server ID in notification tagsSimon Ser1-2/+2
2022-02-11Add support for soju.im/readSimon Ser3-7/+79
2022-02-11Make delivery receipts follow read receiptsSimon Ser1-0/+6
If a message has been read, it's been delivered. Fixes #23 at least partially. References: https://todo.sr.ht/~emersion/gamja/23
2022-02-11Refactor receiptsSimon Ser2-100/+61
They are now saved in the buffer store to allow for proper server separation.
2022-02-11Introduce isMessageBeforeReceiptSimon Ser3-5/+18
2022-02-11components/app: introduce receiptFromMessageSimon Ser1-2/+12
2022-02-11store: debounce buffer store savesSimon Ser1-0/+13
2022-02-11Fix unread marker going backSimon Ser1-1/+1
Receipts must never go back in time. Fixes: c428e504fe9c ("Don't show unread marker for outgoing messages")
2022-02-11components/app: make switchBuffer state changes atomicSimon Ser1-6/+7
Instead of calling App.setBufferState inside the App.setState callback invoked when the update is done, call State.updateBuffer.
2022-02-11components/connect-form: make the server password field password-typeddelthas1-1/+1
2022-02-10Set min node version in package.jsonSimon Ser2-0/+6
v14.13.0 is required for CommonJS named imports to work properly.
2022-02-04fix ping after reconnectДамјан Георгиевски2-4/+6
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.
2022-02-04components/buffer-header: fix dead space above descriptionSimon Ser1-1/+1
2022-02-04components/buffer-list: remove pointless temporary variableSimon Ser1-3/+2
2022-02-04state: add bouncerNetworks helpersSimon Ser2-8/+17
2022-02-02commands: add password param to /joindelthas3-6/+14
2022-01-31commands: add comment param to /kick usageSimon Ser1-1/+1
2022-01-31lib/irc: add missing Isupport.chanModesSimon Ser1-3/+14
It was called by forEachChannelModeUpdate, but wasn't implemented.
2022-01-14components/buffer: use browser locale for date-separatorxse1-4/+1
2022-01-10components/buffer: fix INVITE linkSimon Ser1-5/+1
It was throwing a TypeError.
2022-01-09commands: simplify /who usage stringSimon Ser1-1/+1
As per https://modern.ircdocs.horse/#who-message
2022-01-09components/help: use bold for command name onlySimon Ser1-3/+3
2022-01-09components/help: remove "/" keybinding, document middle mouse clickSimon Ser1-7/+7
2022-01-07Better handle long topics on small screen sizesIsaac Freund1-0/+3
Currently long topics will cause the buffer header to take up an arbitrarily large percentage of the screen on mobile. Additionaly, long words like URLS are not broken and may cause the buffer header to extend outside of the viewport in the x direction, rendering the buffer content unreadable. This patch fixes these two issues by limiting the buffer header size to 20% of the viewport and breaking long words such as URLs if they would overflow. Fixes: https://todo.sr.ht/~emersion/gamja/129
2021-12-21Display persistant command input on server bufferNoelle Leigh2-5/+13
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
2021-12-16state: fix prefix() call in MODE handlerSimon Ser1-1/+1
Lost during a refactoring. Fixes: ab3d4dd66183 ("Refactor ISUPPORT handling")
2021-12-16ci: fix deploy skipSimon Ser1-1/+1
2021-12-13Add away commandRafael Castillo1-0/+11
2021-12-10lib/irc: add CapRegistrySimon Ser5-59/+90
2021-12-07Add reconnect buttonSimon Ser2-26/+20
2021-12-07state: fix server bouncerNetIDSimon Ser1-1/+1
Ooops.
2021-12-07Move isBouncer props to server stateSimon Ser5-17/+11
Avoids having to pass this around.
2021-12-07Implement exponential backoff for reconnectionsSimon Ser1-3/+40
Closes: https://todo.sr.ht/~emersion/gamja/118
2021-12-07Refactor ISUPPORT handlingSimon Ser7-83/+127
Add a helper class to parse ISUPPORT tokens. Instead of having manual ISUPPORT handling all over the place, use pre-processed values.
2021-12-06lib/client: use Error objects for error eventsSimon Ser2-24/+31
2021-12-06Handle FAIL ACCOUNT_REQUIREDSimon Ser1-3/+17
2021-12-06Read nickname from RPL_WELCOMESimon Ser1-0/+1
References: https://github.com/ircdocs/modern-irc/pull/146
2021-12-04Add Client.join, show join errors in popupSimon Ser3-2/+36
2021-12-04lib/client: add generic error handling to roundtrip()Simon Ser2-40/+50
2021-12-04lib/client: introduce IRCErrorSimon Ser1-5/+19