File tree 4 files changed +14
-11
lines changed
legacy/status_im/ui/screens/chat/message
chat/messenger/messages/content
shell/activity_center/notification/reply
4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 2
2
(:require
3
3
[legacy.status-im.react-native.resources :as resources]
4
4
[legacy.status-im.ui.components.colors :as quo.colors]
5
- [legacy.status-im.ui.components.fast-image :as fast-image]
6
5
[legacy.status-im.ui.screens.chat.message.legacy-style :as style]
7
6
[quo.core :as quo]
8
7
[quo.foundations.colors :as colors]
145
144
[rn/text {:style (style/status-text )}]
146
145
(-> content :parsed-text peek :children ))]])
147
146
148
- ; ; STICKER
149
- (defn sticker
150
- [{:keys [content]}]
151
- [fast-image/fast-image
152
- {:style {:margin 10 :width 140 :height 140 }
153
- :source {:uri (str (-> content :sticker :url ) " &download=true" )}}])
154
-
155
147
(defn contact-request-status-pending
156
148
[]
157
149
[rn/view {:style {:flex-direction :row }}
Original file line number Diff line number Diff line change
1
+ (ns status-im.contexts.chat.messenger.messages.content.sticker.view
2
+ (:require [react-native.core :as rn]
3
+ [react-native.fast-image :as fast-image]))
4
+
5
+ (defn sticker-message
6
+ [{:keys [content]}]
7
+ [rn/view {:style {:margin-top 6 :margin-bottom 4 }}
8
+ [fast-image/fast-image
9
+ {:style {:width 120 :height 120 }
10
+ :source {:uri (str (-> content :sticker :url ) " &download=true" )}}]])
Original file line number Diff line number Diff line change 20
20
[status-im.contexts.chat.messenger.messages.content.pin.view :as pin]
21
21
[status-im.contexts.chat.messenger.messages.content.reactions.view :as reactions]
22
22
[status-im.contexts.chat.messenger.messages.content.status.view :as status]
23
+ [status-im.contexts.chat.messenger.messages.content.sticker.view :as sticker]
23
24
[status-im.contexts.chat.messenger.messages.content.style :as style]
24
25
[status-im.contexts.chat.messenger.messages.content.system.text.view :as system.text]
25
26
[status-im.contexts.chat.messenger.messages.content.text.view :as content.text]
203
204
[emoji/emoji-message message-data context]
204
205
205
206
constants/content-type-sticker
206
- [not-implemented/not-implemented [old- message/sticker message-data] ]
207
+ [sticker/sticker- message message-data]
207
208
208
209
constants/content-type-audio
209
210
[audio/audio-message message-data context]
Original file line number Diff line number Diff line change 1
1
(ns status-im.contexts.shell.activity-center.notification.reply.view
2
2
(:require
3
3
[clojure.string :as string]
4
- [legacy.status-im.ui.screens.chat.message.legacy-view :as old-message]
5
4
[quo.core :as quo]
6
5
[react-native.gesture :as gesture]
7
6
[status-im.common.not-implemented :as not-implemented]
8
7
[status-im.constants :as constants]
8
+ [status-im.contexts.chat.messenger.messages.content.sticker.view :as sticker]
9
9
[status-im.contexts.shell.activity-center.notification.common.view :as common]
10
10
[status-im.contexts.shell.activity-center.notification.reply.style :as style]
11
11
[utils.datetime :as datetime]
34
34
:message-text (get-in message [:content :text ])}])
35
35
36
36
constants/content-type-sticker
37
- [old-message /sticker message]
37
+ [sticker /sticker-message message]
38
38
39
39
constants/content-type-system-pinned-message
40
40
[not-implemented/not-implemented
You can’t perform that action at this time.
0 commit comments