| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Unfortunately, the date tests of the last commit only work in one time
zone. This changes them to work in UTC. If your machine doesn't use UTC,
you now have to run the tests like this:
TZ=UTC pytest
I'm not sure what the best way to avoid requiring this is.
|
| |
|
| |
|
|
|
|
|
|
| |
Fallbacks in messages are not changed when channels/users/groups are
renamed, so they shouldn't be used unless the ref can't be found. Links
are not refs we look up, so they are still treated the same way.
|
|
|
|
|
| |
This is only used in tests and in render_topic, and I don't see why
render_topic shouldn't follow the global config that is set.
|
|
|
|
|
| |
This is only used in tests, and there we can override the config
instead.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Add implementation of slack layout blocks
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I added support for reach_text block otherwise at the end of all
messages wee-slack was printing the raw JSON block.
I have also fixed the `call` block to print the right join url
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
|
| | |
|
| |
| |
| |
| | |
inside the message.
|
| | |
|
| |
| |
| |
| |
| |
| | |
This commit adds the support for call block. It fixes #726
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
Fixes #681
|
|
|
|
| |
Fixes #236, fixes #575
|
|
|
|
| |
Fixes #465
|
| |
|
|
|
|
|
| |
Because this sat channel.members directly instead of calling
set_members, the nicklist wasn't updated.
|
|
|
|
|
|
|
|
|
| |
The channel dict sent as kwargs to SlackChannel from handle_rtmstart
contains the is_member property. However the one from
process_channel_created doesn't. Since you never are a member when the
channel is created, we can set it to false (if you create the channel
yourself or is invited immediately a channel_joined message will follow
the channel_created message).
|
|
|
|
| |
Fixes #716
|
|
|
|
|
|
|
|
|
|
|
| |
Like SlackSharedChannel, SlackPrivateChannel doesn't include members in
the result from rtm.start, and we have to use conversations.info for
them which doesn't include members either. Therefore, we have to call
conconversations.members.
I hadn't noticed that the members were missing because I only tested
with channels with a short backlog, so the members were filled by the
join messages which were still present in the history that were fetched.
|
|
|
|
|
|
| |
This adds a page which shows the OAuth code, and sets the redirect_uri
for the OAuth link to this page. This url includes # at the end so the
OAuth code is only seen by the browser, and not sent to the server.
|
| |
|
| |
|
|
|
| |
When installing on OpenBSD, you need to specify the Python 3 version (not Python 2)
|
|
|
|
|
| |
This can be used when you want to remove a team, so you know which token
to remove.
|
|
|
|
|
|
|
|
|
| |
When new replies come in over websocket, we don't update the
message_json of the parent message with the new replies, we just append
the new message to the submessages list. Therefore, the
number_of_replies function has to check both of these and take the max.
Fixes #722
|
| |
|
|
|
|
|
|
| |
It tooked me a while to figure out why weechat says that websocket module was not found in wee-slack plugin.
pip list sayed websocket-client was installed.
after installing pip3 and websocket-client with pip3, everything worked fine.
The current ubuntu 19.04 `python-websocket` package has always installed the python2.7 version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is for channels which initially were public, but then are changed
to private. They look the same as groups (channels initially created as
private) in the official clients, but can only be used with the
conversations api. They are listed in the channels list of rtm.start
with is_private set to true.
There are some remaining issues, which are documented in the readme.
I'm not sure if we can support read sync and showing unread on load
without changes from Slack to the API.
Showing thread messages in the channel is possible to fix, but we would
have to send requests to load the thread history for all the messages in
the history that has replies.
Fixes most of #644
|
|
|
|
| |
Fixes #620
|
| |
|
|
|
|
| |
Fixes parts of #714
|
|
|
|
|
|
|
|
| |
This was broken in commit 6f9339b.
I haven't verified that is_member is set to the correct value when a
user group is created, because I don't have access to a slack team where
I can create user groups right know.
|
| |
|
| |
|
|
|
|
|
|
| |
Also shows if you are a member or not in the command /slack usergrous.
Fixes #272, fixes #367, fixes #542
|
|
|
|
|
| |
This allows you to complete nicks without a leading @ in buffers we
don't show the nicklist, i.e. the team buffer and thread buffers.
|
| |
|
|
|
|
| |
Fixes #698
|
|
|
|
|
|
|
|
| |
If we don't linkify users, only usernames (which are not shown anymore)
are accepted by the chat.command endpoint, not display names. It does
accept user links, so we can use that. However, it doesn't seem to
accept channel links (at least the invite command, which is what I
tested), so we only linkify users.
|
|
|
|
| |
Fixes #369, fixes #374
|
|
|
|
| |
We should always use w, so we go through the WeechatWrapper.
|
|
|
|
| |
So it doesn't try to connect to the websocket when running the tests.
|