Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Support API restricted workspaces | Trygve Aaberge | 2024-02-18 | 7 | -58/+311 | |
| | | | | | | | | | | | | | | | | | | Some enterprise workspaces are restricted in which API methods they can use, so we have to use some of the APIs the official web client uses (which can't be used by OAuth tokens) instead (mainly to initialize the workspace with client.userBoot and client.counts, and to connect to the websocket). This also has the benefit of being more performant, as the API methods the web client uses are more suited for creating a client than the official API methods. I think which API methods are restricted may be configured by the workspace admins, so it may not be the same for different workspaces, but for me it seems to be at least rtm.connect, users.conversations, conversations.list and conversations.members, so these are the ones I've changed to be conditional on the token type. | |||||
* | Don't return sort_key from _conversation_if_should_open | Trygve Aaberge | 2024-02-18 | 1 | -2/+4 | |
| | | | | | This originally had to be returned here because it was an async function, but now that it's a sync function this can be simplified. | |||||
* | Remove logging of some known unhandled websocket message types | Trygve Aaberge | 2024-02-18 | 1 | -1/+7 | |
| | ||||||
* | Remove black and isort | Trygve Aaberge | 2024-02-18 | 2 | -167/+1 | |
| | ||||||
* | Switch to ruff in CI and docs | Trygve Aaberge | 2024-02-18 | 2 | -4/+4 | |
| | ||||||
* | Fix ruff lint errors | Trygve Aaberge | 2024-02-18 | 4 | -24/+24 | |
| | ||||||
* | Enable import sorting with ruff | Trygve Aaberge | 2024-02-18 | 1 | -0/+1 | |
| | ||||||
* | Format all files with ruff | Trygve Aaberge | 2024-02-18 | 8 | -14/+43 | |
| | ||||||
* | Support completion of all workspace nicks | Trygve Aaberge | 2024-02-18 | 2 | -3/+21 | |
| | ||||||
* | Fix compatibility with WeeChat 2.9 | Trygve Aaberge | 2024-02-18 | 1 | -5/+11 | |
| | ||||||
* | Add completion of emoji names | Trygve Aaberge | 2024-02-18 | 9 | -8/+68 | |
| | ||||||
* | Make SlackConversation constructor async | Trygve Aaberge | 2024-02-18 | 3 | -29/+34 | |
| | | | | | | This is perhaps a bit hacky, but it makes the type checker enforce that we complete the async initialization of SlackConversation instead of getting a runtime exception. | |||||
* | Add completion for conversation names | Trygve Aaberge | 2024-02-18 | 3 | -8/+19 | |
| | ||||||
* | Make conversations.name not async | Trygve Aaberge | 2024-02-18 | 6 | -53/+78 | |
| | | | | | This means a lot of methods don't have to be async. It's especially useful for the next commit adding conversations completions. | |||||
* | Support completing @nicks in current buffer | Trygve Aaberge | 2024-02-18 | 4 | -6/+80 | |
| | | | | | | | | | | | Adds all known nicks in the current buffer with an @ prefix to the nicks completion. Disables the API search based nick completion for now until it's working properly. It currently doesn't have any context of which conversation/thread you are in, so you often get other nicks than the one you want to complete first. Additionally, it doesn't work with OAuth tokens. | |||||
* | Support bold/italic attributes when sending messages | Trygve Aaberge | 2024-02-18 | 1 | -1/+5 | |
| | ||||||
* | Support mentioning users | Trygve Aaberge | 2024-02-18 | 1 | -3/+24 | |
| | | | | | | | This currently has the limitation that the user has to be known to wee-slack for the mention to work. That is, there needs to be some interaction with it (message or reaction from or mention) or it has to be in the loaded members in any of the loaded conversations. | |||||
* | Support group broadcast refs | Trygve Aaberge | 2024-02-18 | 1 | -2/+3 | |
| | | | | This is an alias for @channel. | |||||
* | Support open/close/joined/left conversation events | Trygve Aaberge | 2024-02-18 | 3 | -2/+72 | |
| | ||||||
* | Close IM/MPIM and remove from open_conversations on buffer close | Trygve Aaberge | 2024-02-18 | 2 | -0/+19 | |
| | ||||||
* | Open closed IM/MPIM buffers on new messages | Trygve Aaberge | 2024-02-18 | 1 | -5/+11 | |
| | ||||||
* | Show user status in DM buffer title | Trygve Aaberge | 2024-02-18 | 7 | -33/+78 | |
| | ||||||
* | Check if closed IMs/MPIMs have unread messages on start | Trygve Aaberge | 2024-02-18 | 1 | -3/+15 | |
| | | | | | Sometimes an IM/MPIM can have unread messages even when is_open is false, so we have to check the history if there are any unread messages. | |||||
* | Show conversation topic in buffer title | Trygve Aaberge | 2024-02-18 | 5 | -3/+35 | |
| | ||||||
* | Handle when some items are missing from the response | Trygve Aaberge | 2024-02-18 | 2 | -6/+21 | |
| | ||||||
* | Log connected/disconnected from workspace | Trygve Aaberge | 2024-02-18 | 1 | -0/+3 | |
| | | | | | We should create a server buffer for each workspace, but print to the core buffer for now. | |||||
* | Log unknown websocket messages to debug buffer instead of core | Trygve Aaberge | 2024-02-18 | 1 | -5/+14 | |
| | | | | | This just logs that a message is unknown/unhandled. The contents of the message will be printed on the line above. | |||||
* | Fetch all mentioned users at once in fill_history | Trygve Aaberge | 2024-02-18 | 2 | -8/+23 | |
| | ||||||
* | Don't crash when message for hash is missing | Trygve Aaberge | 2024-02-18 | 1 | -6/+7 | |
| | | | | | We can have a hash for a message we don't have if e.g. a broadcast reply is sent, and the parent is older than the history we have fetched. | |||||
* | Print error when loosing connection, for debugging | Trygve Aaberge | 2024-02-18 | 1 | -2/+2 | |
| | ||||||
* | Handle unknown user/bot when adding to nicklist | Trygve Aaberge | 2024-02-18 | 1 | -12/+24 | |
| | ||||||
* | Handle errors when looking up chat items | Trygve Aaberge | 2024-02-18 | 2 | -16/+69 | |
| | ||||||
* | Fix bug with setting bool config values | Trygve Aaberge | 2024-02-18 | 2 | -3/+6 | |
| | ||||||
* | Use one debug buffer for all debug logging | Trygve Aaberge | 2024-02-18 | 5 | -56/+79 | |
| | | | | | I will implement filtering like the /server raw buffer, instead of having multiple debug buffers. | |||||
* | Add tests for attachments and fix rendering bugs | Trygve Aaberge | 2024-02-18 | 5 | -37/+755 | |
| | ||||||
* | Apply code block styles first | Trygve Aaberge | 2024-02-18 | 2 | -5/+61 | |
| | | | | | | | It looks better to have the `` characters around the other styles when there's styling inside code blocks. It makes it look a bit worse when theres code blocks inside styled text though. It should really remember the order the styles are opened to close them in the correct order. | |||||
* | Add render blocks tests from old version | Trygve Aaberge | 2024-02-18 | 3 | -6/+393 | |
| | ||||||
* | Catch errors when rendering message | Trygve Aaberge | 2024-02-18 | 1 | -20/+27 | |
| | ||||||
* | Support editing and deleting messages | Trygve Aaberge | 2024-02-18 | 3 | -20/+119 | |
| | ||||||
* | Support adding and removing reactions | Trygve Aaberge | 2024-02-18 | 5 | -4/+89 | |
| | ||||||
* | Only use letters for message hashes | Trygve Aaberge | 2024-02-18 | 1 | -1/+3 | |
| | | | | This way it doesn't collide with message indices. | |||||
* | Upgrade dependencies | Trygve Aaberge | 2024-02-18 | 1 | -12/+12 | |
| | ||||||
* | Support sending messages | Trygve Aaberge | 2024-02-18 | 7 | -15/+66 | |
| | ||||||
* | Apply highlights in chat even when notify is none | Trygve Aaberge | 2024-02-18 | 3 | -1/+11 | |
| | | | | | | | When notify is none, the buffer should not appear in the hotlist even for a highlight. However, when switching to the buffer, we want the line to be highlighted. To achieve this use a tag added to highlight_tags on the buffer. | |||||
* | Support muted conversations config | Trygve Aaberge | 2024-02-18 | 7 | -6/+115 | |
| | ||||||
* | Add some basic tests for SlackMessage._unfurl_refs | Trygve Aaberge | 2024-02-18 | 2 | -1/+195 | |
| | ||||||
* | Add some repr methods for useful debug printing | Trygve Aaberge | 2024-02-18 | 3 | -1/+10 | |
| | ||||||
* | Remove color suffix from color option | Trygve Aaberge | 2024-02-18 | 2 | -10/+10 | |
| | | | | It's redundant to have this when the options are in the color section. | |||||
* | Support highlight notifications without rendering history | Trygve Aaberge | 2024-02-18 | 3 | -329/+383 | |
| | ||||||
* | Don't show disconnected status when connecting | Trygve Aaberge | 2024-02-18 | 1 | -2/+5 | |
| |