| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
If somebody adds a reaction on a file, there will be no channel
associated with it. Handle that gracefully. (Reaction will still be
missing, but at least there's no traceback.)
Related to #316.
|
|
|
|
| |
Fixes: 507, based on the work done in that PR by @Shaac.
|
| |
|
|
|
|
|
|
|
|
| |
is_bot seems to no longer be a thing, so drop that setting. For
messages from bots with username set in the message, use that
username, but mark it as a bot message.
Fixes #519
|
|
|
|
|
|
| |
* Fixes display names for 'app' users,
in before it'd be displayed as "bot :]"
and now it's "-{display name}-".
|
| |
|
|
|
|
| |
The refactor is a long time ago now, and caching has been removed.
|
|\
| |
| | |
Don't tag team messages as normal messages
|
| |
| |
| |
| |
| | |
Makes it easier to people to filter slack messages the way they want
(e.g. if you don't want team messages in the hotlist).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the user has set up highlight for e.g. their own nick, the team
buffer will trigger a highlight when wee-slack is loaded because it
prints the nick. You will also get a highlight from e.g. /slack users.
The messages we send to the team buffer are informational messages that
I don't think should trigger highlights. They will still show up in the
hotlist as normal messages.
|
|/
|
|
|
| |
Team messages shouldn't show up in the hotlist as private messages
(default green), but as normal messages (default white).
|
|
|
|
|
| |
In #504 I proposed to add some help to future debuggers. This is a split PR from that.
cc: @trygveaa
|
|\
| |
| | |
Don't add deleted users to the nicklist
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
This check was done when generating complete nicklist, but not when
updating a single user. Deleted users are still part of the member list
of a channel, if they don't leave the channel first. This caused a
deleted user to be inserted into the nicklist when processing a joined
channel message or when receiving a presence change for that user.
When investigating this, I saw that we still receive presence change
events for deleted users if we subscribe to them. We might want to
filter out the deleted users when generating the list of users to
subscribe to.
|
|\
| |
| | |
Include members set and team in SlackThreadChannel
|
| | |
|
| |
| |
| | |
Allows autocompletion of nicks to work (instead of error from `nick_completion_cb`)
|
|\ \
| | |
| | | |
Fix quit callback function
|
|/ /
| |
| |
| |
| | |
The function was renamed at some point without renaming the hook signal,
so weechat would print an error when exiting.
|
|\ \
| | |
| | | |
Temporary fix user presence subscription crashing big teams
|
|/ / |
|
|\ \
| | |
| | | |
SlackUser: use profile.display_name if available
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since recent changes in Slack, usernames can no longer be set directly, and
are instead inferred from the email address. This is not particularly useful,
so the recommendation is to instead use display_name. display_name may have
spaces in it, however, which confuses tab completion.
With this change, wee-slack uses display name for both display and completion,
after first stripping all whitespace from it. Ref linking (via linkify_text)
ensures that @mentions continue to work properly even when this whitespace
removal means that the name being @mentioned locally doesn't match the "real"
username.
|
|\ \ \
| |/ /
|/| | |
Restore OAuth support
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix presence subscription now mandatory to get state changes
|
|/ / /
| | |
| | |
| | | |
https://api.slack.com/docs/presence-and-status#batching
|
|\ \ \
| | | |
| | | | |
Suppress SSLWantReadError errors
|
|/ / /
| | |
| | |
| | |
| | | |
This exception is expected to some degree and does not affect the functioning
of wee-slack. With this change, it will no longer appear in the log.
|
|\ \ \
| |_|/
|/| | |
Handle memberlist updates in channelsinfo message
|
|/ /
| |
| |
| |
| |
| |
| | |
In large Slacks, channel membership isn't included in the initial channel
info, but in channelsinfo messages sent after connection. This fixes an
issue where most users would not ever show up in the nicklist when
connecting to such slacks.
|
|\ \
| |/
|/| |
Add completion of custom emojis
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It's simpler to just reload the whole list instead of adding and
removing specific emojis, especially since we would have to remove
aliases for an emoji when the emoji is removed (and we don't store if an
emoji is an alias or not).
Since this probably doesn't happen that often, it shouldn't be a problem
to do it this way.
|
| |
| |
| |
| |
| |
| |
| | |
After the last commit, the EMOJI variable is accessed in the
initialization of SlackTeam. This made some tests fail since they don't
run the main code, so it would not be defined. By setting EMOJI to an
empty list in the top, we ensure that this is not a problem.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This loads the list of custom emojis for each team after wee-slack has
connected to the team, and adds them to the emoji completion list for
that team.
The list of custom emojis is only loaded if the list of the standard
emojis has been loaded, since it would be a bit strange to only have
completions of the custom emojis.
|
| | |
|
| |
| |
| |
| |
| | |
This prevents an error that EMOJI is not defined when trying to tab
complete after the emoji list could not be loaded.
|
| |
| |
| |
| |
| |
| |
| |
| | |
By printing the exception instead of sys.exc_info, we get more useful
error messages, including the path to the file it is trying to load if
it can't find it.
Fixes #431
|
| |
| |
| |
| |
| | |
Emoji completion works fine for me without it, so this doesn't seem to
be necessary anymore.
|
|\ \
| | |
| | | |
feat: Remove Slacks auto prefixing of url protocols
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Instead of each of the callers of unfurl_refs having to get the config
values, get them in unfurl_refs if they are not set by the caller.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This changes the feature from the previous commit so it's also possible
to only display the url when the text and the url (without the protocol)
in a link is equal.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When you write multiple words separated by dots, or email adresses,
Slack will turn those into links. Wee-slack will display this as
`text (url)`, where url is just the text with http:// or mailto:
prefixed. This makes the text hard to read, and might not even make
sense (e.g. when writing server names or user@hostname).
When you receive such an url, the alt text of the url will be the
original text. This means that we can check if the url is just the alt
text with a protocol prefixed. If it is, we should just print the alt
text and ignore the url.
I guess some people may want the urls, so they are able to click the
links. And since it removes information coming from slack, I made it
into an option instead of making it the default.
|
|\ \ \
| | | |
| | | | |
Use the timestamp of the last message in mark_read
|