2022-08-30 18:20:43 +02:00
|
|
|
diff --git a/slack-message.c b/slack-message.c
|
2022-08-31 12:42:34 +02:00
|
|
|
index de49fa6..038261d 100644
|
2022-08-30 18:20:43 +02:00
|
|
|
--- a/slack-message.c
|
|
|
|
+++ b/slack-message.c
|
2022-08-31 12:42:34 +02:00
|
|
|
@@ -164,6 +164,18 @@ void slack_message_to_html(GString *html, SlackAccount *sa, gchar *s, PurpleMess
|
2022-08-30 18:20:43 +02:00
|
|
|
}
|
|
|
|
s = r+1;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ if (strstr(html->str, "slack.com/call") != NULL) {
|
2022-08-31 12:42:34 +02:00
|
|
|
+ gchar *find = g_strconcat(sa->host, "/call", NULL);
|
|
|
|
+ gchar *replace = g_strconcat( "app.slack.com/free-willy/", sa->team.id, NULL);
|
|
|
|
+ gchar *newHtml = purple_strreplace(html->str, find, replace);
|
2022-08-30 18:20:43 +02:00
|
|
|
+
|
2022-08-31 12:42:34 +02:00
|
|
|
+ g_string_assign(html, newHtml);
|
2022-08-30 18:20:43 +02:00
|
|
|
+
|
2022-08-31 12:42:34 +02:00
|
|
|
+ g_free(find);
|
|
|
|
+ g_free(replace);
|
|
|
|
+ g_free(newHtml);
|
2022-08-30 18:20:43 +02:00
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|