2180 Commits

Author SHA1 Message Date
Pascal Precht
ae4d59de9a fix(Chat): ensure message context menu preserve mentions in copied messages
Because the context menu relied on `unparsedTex` it was unable to preserve the pubkey<->displayName conversion when
copying messages to the clipboard.

This commit fixes it by introducing a new `replacePubKeysWithMentions` utility
which is used when message items are initialized, resulting in `unparsedText`
to keep th`@`mentions around.

Closes #9168
2023-01-19 16:47:36 -05:00
Alex Jbanca
bf1d59c0ad perf(chatScroll): Avoid calling the backend on delegate creation/binding
Provide the needed data from the nim model directly to the delegate. This way whenever a delegate needs to display the data it doesn't need to reach the backend.

perf(chatScroll): Fix comments on Avoid calling the backend on delegate creation/binding

perf(chatScroll): Avoid calling the backend on delegate creation/binding  - add TODO comment on senderColorHash default

perf(chatScroll): merge quotedMessageAuthor details

perf(chatScroll): Fix nim tests

perf(chatScroll): Fix merge error - messages_model.nim
2023-01-19 19:24:18 +02:00
Jonathan Rainville
470a872659 fix(replies): update quoted message data when receiving new messages
Fixes #9156
2023-01-19 09:40:56 -05:00
MishkaRogachev
2890fe5845 hotfix(ActivityCenter): Fix warnings and text align with messageBadge 2023-01-18 18:01:56 +04:00
Dario Gabriel Lipicar
d11017f7b3 feat(@desktop/wallet): implement unified currency formatting in send/bridge modal
Fixes #8934
2023-01-17 16:39:56 -03:00
Patryk Osmaczko
ae55e78faf feat(chat): ignore not loaded messages
closes: #8838
2023-01-17 18:58:53 +01:00
Jonathan Rainville
dbaa285f4c chore(badge): stop counting contact request in chat section badge
Fixes #9152
2023-01-17 12:32:32 -05:00
Lukáš Tinkl
b2328d6643 chore: Consolidate date/time formatting
- simplify locale settings
- extract/fix datetime related functions into LocaleUtils
- port code to the new LocaleUtils

Closes #7230
2023-01-17 16:42:34 +01:00
Patryk Osmaczko
b242624c47 fix(chat/messages): use timestamp instead of whisperTimestamp
iterates: #8962
2023-01-17 16:21:25 +01:00
Pascal Precht
8644c841d4 fix(chat): make category bold if chats have unread messages
Closes #8604
2023-01-17 15:39:56 +01:00
Sale Djenic
25944f8928 feat(@desktop/onboarding): weird menu order on app login
Fixes: #9135
2023-01-17 15:29:08 +01:00
Pascal Precht
979b035049 fix(chat): only turn available channels into clickable tags
Closes #8895
2023-01-17 13:52:16 +01:00
Pascal Precht
bf7148efd6 fix: make avatar info in replies of imported messages work again
Because we've switched to `QuotedMessage` as an attached payload to
messages to make message replies data more reliable, we lost some of
the author information in imported messages, that was available prior
to that move.

This commit introduces `quotedMessageAuthorDisplayName` and
`quotedMessageAuthorAvatar` to our model so it can be set in case
we can't retrieve contact details for a given message (which is always
the case for imported messages)
2023-01-17 12:48:56 +01:00
Dario Gabriel Lipicar
34cf8b6533 fix(@desktop/wallet): fix wrong symbol for pegged tokens 2023-01-17 13:58:17 +04:00
Sale Djenic
368fa21b1a feat(@desktop/onboarding): onboarding - recover account flow - UI adjustments
Closes: #9120
2023-01-16 23:01:42 +01:00
Sale Djenic
fa3f9a1083 fix(@desktop/onboarding): recover account crash fixed 2023-01-16 21:25:59 +01:00
Dario Gabriel Lipicar
d560b1264d fix(@desktop/wallet): cache currency format
Fixes #9132
2023-01-16 15:24:27 -03:00
Alex Jbanca
d07136481c perf(chatScroll): Adding signals for chat settings in MessageStore
perf(chatScroll): Fix comment
2023-01-16 10:26:53 -05:00
Patryk Osmaczko
b26565e653 feat(chat): add messages in bulk instead one by one
iterates: #3067
2023-01-16 13:08:43 +01:00
Patryk Osmaczko
a21bebcacc feat(chat): implement bulk insertion algorithm
motivated by: #9068
iterates: #3067
2023-01-16 13:08:43 +01:00
Jonathan Rainville
f8c4682885 chore(contact-request): remove old contact request button and popup
Fixes #9072

I made clicking on the OS notification open the AC instead of the old popup
2023-01-13 16:16:14 -05:00
Sale Djenic
c16fc0d088 fix(@desktop/wallet): random app crash - from onAllTokensBuilt slot (by the log)
This commit should fix the crash we were facing with a successive import
of multiple wallet accounts. Usually happens if you migrate an account from
a Keycard into the app. But also a crash may randomly happen without any
activity.

Fixes: #9065
2023-01-13 21:02:36 +01:00
Sale Djenic
cae2a5bea3 feature(@desktop/keycard): sync a Keycard state on every usage
Closes: #8759
2023-01-13 21:02:36 +01:00
Michal Iskierko
0cd2419f59 fix(@desktop/chat): Improve installing stickers code to handle disconnected state better
Use async task to install stickers

Issue #6567
2023-01-13 12:33:08 +01:00
Khushboo Mehta
bfd5fe1446 fix(@desktop/wallet): Wallet -> Activity tab: transaction history issues
fixes #7278
2023-01-13 10:18:42 +01:00
Jonathan Rainville
af0c9767d1 feat(context-menu): add Copy message action in message context menu
Adds the action to copy the right-clicked message's text.

It copies the unparsed text (no html).
For that, I had to add it in the MessageItem and expose it in the model.

I also fixed the copy MessageId action that didn't show + didn't work even if it would have shown.

Plus some small cleanups.
2023-01-12 16:15:17 -05:00
Jonathan Rainville
c3945f33c0 feat(replies): add deleted to QuotedMessage to change msg displayed
Adds `deleted` to the QuotedMessage object so that on the frontend, we can show "Delete message" only when we know the message was deleted.
Otherwise, when we don't know the quoted message, we show "Unknown message [...]"
2023-01-12 15:18:03 -05:00
Jonathan Rainville
91c2e6d257 feat: use QuotedMessage object for replies to better show the replies
Fixes #7754
ok
2023-01-12 15:18:03 -05:00
Jonathan Rainville
c16e4fe3d2 feat(message): add replied property to message + replies act as mentions
Fixes #8324
2023-01-12 15:17:49 -05:00
Boris Melnik
c2f84fd882 fix(chat): Update new messages marker when message was removed
Fixes: #9014
2023-01-12 15:09:58 -05:00
Dario Gabriel Lipicar
7c4022e4ac feat(@desktop/wallet): implement unified currency formatting
Fixes #8640
2023-01-12 15:21:27 -03:00
Anthony Laibe
e7b746795f feat(@wallet): multi tx approval/nonce 2023-01-12 13:33:29 +01:00
mprakhov
52d336b5a6 fix(@desktop/chat): allow to send attached image without text input 2023-01-11 18:27:31 +02:00
Patryk Osmaczko
bbc7da7c7d refactor: remove misleading APIs from message_model 2023-01-11 09:27:20 +01:00
Patryk Osmaczko
fe4e14ff5b fix(chat/messages): set clock value for new messages marker
New messages marker had a clock value of "0" before. Since all
messages are inserted based on the clock value, new messages marker
would cause other "0"-valued clock items to be inserted after it,
effectively making chat header being displayed in the middle of the
chat.

Setting new messages marker clock value to the clock of the message it
points to solves the issue.

fixes: #8955
2023-01-11 09:27:20 +01:00
Sale Djenic
d7e4ee2395 fix(@desktop/onboarding): fetching waku data ui improvements
- icon added to the ui items we're syncing
- in case data are fetched during 30 seconds timeframe the app is staying in success state
2023-01-10 09:37:46 +01:00
mprakhov
0cc64774af fix(desktop/chat) show the badge during receiving the mention in inactive section 2023-01-09 20:00:51 +02:00
Boris Melnik
9b8a86a3cb feat(communities): Add ban state for spectated community
Fixes: #8761
2023-01-09 10:30:54 -05:00
Anthony Laibe
364124b1ed chore(@wallet): remove dead code about estimage gas 2023-01-07 11:11:10 +01:00
Jonathan Rainville
297280c467 fix(chat-badge): don't count unread messages when restarting
Fixes #8943
2023-01-05 09:54:24 -05:00
Lukáš Tinkl
e947f81cd2 fix: Chat input: can't send html text from the clipboard
We always take the plain text from the clipboard but even the plaintext
can contain HTML tags, so escape those and wrap the result in a `<div
style='white-space: pre-wrap'>foo</div>` container. That way we preserve
not only the linebreaks but also any whitespace or tags.

Fixes #8919
2023-01-05 12:32:53 +01:00
Patryk Osmaczko
ce08265e0d chore: re-enable logging in prod version
closes: #8932
2023-01-04 18:16:04 +01:00
Patryk Osmaczko
b8a1c70d62 chore: add task details to threadpool logs
makes #5938 easier to debug
2023-01-04 17:40:46 +01:00
mprakhov
d061b9a1d1 fix(@desktop/chat): empty chat members list 2023-01-04 18:04:50 +02:00
Sale Djenic
32fcda485c feature(@desktop/keycard): migrate an exsiting account from Keycard to Status Desktop
Fixes: #7030
2023-01-04 14:24:55 +01:00
Sale Djenic
6db0583d87 chore(@desktop/keycard): typo in variables naming fixed 2023-01-04 14:24:55 +01:00
Sale Djenic
1bc9deef47 chore(@desktop/keycard): keyPairForAuthentication replaced by keyPairForProcessing 2023-01-04 14:24:55 +01:00
Sale Djenic
b2cb263d68 feature(@desktop/keycard): import or restore a Keycard via a seed phrase
Fixes: #7029
2023-01-04 14:24:55 +01:00
Sale Djenic
8600ef35b3 feature(@desktop/keycard): generating addresses on a Keycard
Generating addresses was done on the status-go side, but now since `ExportPublic`
flow from the keycard library supports deriving addresses for list of derivation paths
we're using it in the desktop app for `SetupNewKeycardNewSeedPhrase` flow.
2023-01-04 14:24:55 +01:00
Sale Djenic
0e65f2a7ff feature(@desktop/keycard): create a new Keycard account with a new seed phrase
Fixes: #7028
2023-01-04 14:24:55 +01:00