| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
I don't know all the possible prefixes, and I don't think it's a problem
to just match # and @. The prefixes I've seen for channels are #C, #D
and #G, and for users @U and @W.
|
|
|
|
|
| |
Instead of splitting the message at spaces and checking and replacing
each word, use re.sub for the whole message.
|
| |
|
|
|
|
|
| |
Instead of finding each match and calling replace on the text with that
match, use re.sub to replace all the matches.
|
|
|
|
|
|
|
|
| |
@group isn't mentioned in the documentation[0], and is changed to
@channel if you try to complete it in the web client, so it probably
shouldn't be used anymore.
[0]: https://get.slack.help/hc/en-us/articles/202009646-Notify-a-channel-or-workspace
|
|
|
|
|
|
|
|
|
| |
This is for the notifications @channel, @everyone, @group and @here.
@group isn't mentioned in the documentation[0], but it is still rendered
as a highlight in the web client, so I included it.
[0]: https://get.slack.help/hc/en-us/articles/202009646-Notify-a-channel-or-workspace
|
| |
|
|
|
|
| |
Fixes #587
|
|
|
|
| |
Subteams/usergroups should never be used without the @.
|
| |
|
| |
|
| |
|
|
|
|
| |
This includes the prefix that shows the channel type.
|
| |
|
|
|
|
| |
Fixes #703
|
|
|
|
| |
Fixes #100
|
|
|
|
|
|
|
| |
The username can't be changed by the users themselves now and is auto
generated for new users, so we shouldn't use it. Only use username as a
last resort if neither display name nor full name is set (I'm not sure
this ever happens, it looks like the full name field is mandatory).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Attachment fields are not guaranteed to have a title at all.
This fixes in particular slackbot app approval messages, with an
attachment like so:
{
"callback_id": "whitelist_A11BCGM0E_181389840855",
"fields": [
{
"short": true,
"value": ":white_check_mark: *<@U4RPXA42F|davo> approved this app for the team.*"
}
],
"fallback": "Approve or deny the application",
"id": 4,
"color": "#2ab27b"
}
|
| |
|
|
|
| |
Also hide any unset fields.
|
|
|
|
|
| |
This prevents printing an error when running /away without -all on
buffers other than slack buffers.
|
| |
|
| |
|
|
|
|
| |
Fixes #697
|
|
|
|
|
| |
When including both a log tag and a no_log tag, the message may be
logged.
|
|
|
|
|
|
|
|
| |
There are scenarios where last_read isn't set, and only self messages
are printed. I experienced it when the only message in the channel was
me joining and renaming the channel. In that case, last_read were never
set, so we should set new_messages for our own messages so last_read
will be set.
|