aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-14 17:44:25 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitf790f652d3428404f789822a9bd510ff866d1640 (patch)
treee324df82dc9ea75b69510794fe7c08434ddf9663
parent5e777696447f1895d67625c913398795308de31f (diff)
downloadwee-slack-f790f652d3428404f789822a9bd510ff866d1640.tar.gz
Add some todos
-rw-r--r--slack/commands.py2
-rw-r--r--slack/slack_api.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/slack/commands.py b/slack/commands.py
index 44d1d13..cc446d3 100644
--- a/slack/commands.py
+++ b/slack/commands.py
@@ -254,12 +254,14 @@ def completion_list_add(completion: str, word: str, nick_completion: int, where:
if word == "%(slack_workspaces)":
completion_slack_workspaces_cb("", "slack_workspaces", "", completion)
else:
+ # TODO: Consider WeeChat verison support, in < 2.9 one must use hook_completion_list_add
weechat.completion_list_add(completion, word, nick_completion, where)
def completion_slack_workspace_commands_cb(
data: str, completion_item: str, buffer: str, completion: str
) -> int:
+ # TODO: Consider WeeChat verison support, in < 2.9 one must use hook_completion_get_string
base_command = weechat.completion_get_string(completion, "base_command")
base_word = weechat.completion_get_string(completion, "base_word")
args = weechat.completion_get_string(completion, "args")
diff --git a/slack/slack_api.py b/slack/slack_api.py
index 3bd75c4..ef15d81 100644
--- a/slack/slack_api.py
+++ b/slack/slack_api.py
@@ -26,7 +26,7 @@ class SlackApi:
return {
"useragent": f"wee_slack {shared.SCRIPT_VERSION}",
"httpheader": f"Authorization: Bearer {self.workspace.config.api_token.value}",
- "cookie": self.workspace.config.api_cookies.value,
+ "cookie": self.workspace.config.api_cookies.value, # TODO: url_encode_if_not_encoded
}
async def _fetch(self, method: str, params: Dict[str, Union[str, int]] = {}):