Skip to content

Commit 9ff9588

Browse files
committed
chore: revert back to join.status.im
1 parent e291be3 commit 9ff9588

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/utils/address.cljs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"The goal here is to generate a string that begins with
2020
join.status.im/u/ joined with the 1st 5 characters
2121
of the compressed public key followed by an ellipsis followed by
22-
the last 12 characters of the compressed public key"
22+
the last 10 characters of the compressed public key"
2323
[base-url public-key]
24-
(if (and public-key base-url (> (count public-key) 17) (= "status.app/u/" base-url))
24+
(if (and public-key base-url (> (count public-key) 17) (= "join.status.im/u/" base-url))
2525
(let [first-part-of-public-pk (subs public-key 0 5)
2626
ellipsis "..."
2727
public-key-size (count public-key)
28-
last-part-of-public-key (subs public-key (- public-key-size 12) public-key-size)
28+
last-part-of-public-key (subs public-key (- public-key-size 10) public-key-size)
2929
abbreviated-url (str base-url
3030
first-part-of-public-pk
3131
ellipsis

src/utils/address_test.cljs

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@
2121

2222
(deftest test-get-abbreviated-profile-url
2323
(testing "Ensure the function correctly generates an abbreviated profile URL for a valid public key"
24-
(is (= "status.app/u/zQ3sh...aimrdYpzeFUa"
24+
(is (= "join.status.im/u/zQ3sh...mrdYpzeFUa"
2525
(utils.address/get-abbreviated-profile-url
26-
"status.app/u/"
26+
"join.status.im/u/"
2727
"zQ3shPrnUhhR42JJn3QdhodGest8w8MjiH8hPaimrdYpzeFUa"))))
2828

2929
(testing "Ensure the function returns nil when given an empty public key"
30-
(is (nil? (utils.address/get-abbreviated-profile-url "status.app/u/" ""))))
30+
(is (nil? (utils.address/get-abbreviated-profile-url "join.status.im/u/" ""))))
3131

3232
(testing "Ensure the function returns nil when given a nil public key"
33-
(is (nil? (utils.address/get-abbreviated-profile-url "status.app/u/" nil))))
33+
(is (nil? (utils.address/get-abbreviated-profile-url "join.status.im/u/" nil))))
3434

3535
(testing "Ensure the function returns nil when given an incorrect base URL"
3636
(is (nil? (utils.address/get-abbreviated-profile-url
37-
"status.app/uwu/"
37+
"join.status.im/uwu/"
3838
"zQ3shPrnUhhR42JJn3QdhodGest8w8MjiH8hPaimrdYpzeFUa"))))
3939

4040
(testing "Ensure the function returns nil when given a public key shorter than 17 characters"
41-
(is (nil? (utils.address/get-abbreviated-profile-url "status.app/u/" "abc")))
42-
(is (nil? (utils.address/get-abbreviated-profile-url "status.app/u/" "1234")))))
41+
(is (nil? (utils.address/get-abbreviated-profile-url "join.status.im/u/" "abc")))
42+
(is (nil? (utils.address/get-abbreviated-profile-url "join.status.im/u/" "1234")))))

src/utils/image_server.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
(def ^:const account-initials-action "/accountInitials")
1212
(def ^:const contact-images-action "/contactImages")
1313
(def ^:const generate-qr-action "/GenerateQRCode")
14-
(def ^:const status-profile-base-url "https://status.app/u/")
15-
(def ^:const status-profile-base-url-without-https "status.app/u/")
14+
(def ^:const status-profile-base-url "https://join.status.im/u/")
15+
(def ^:const status-profile-base-url-without-https "join.status.im/u/")
1616

1717
(defn get-font-file-ready
1818
"setup font file and get the absolute path to it

0 commit comments

Comments
 (0)