kaichao
f0d6a4f64f
Send direct message using CLI ( #4913 )
...
* feat: send dm with cli
* fix: send contact request works
* feat: accept contact request
* feat: send dm
* fix: log
* feat: more dm
* fix: lint
* refactor: fix comments
* fix: more refactor
* fix: refoctor more
* fix: more refacotr
* fix: refactor dm
* fix: context from cli
* fix: add light mode flag
* fix: remove sleep when start node
* fix: better log
* fix: better logger
* fix: lint
* fix: comments
* fix: const flags
* fix: named logger
* feat: inteactive mode
* fix: send message in loop
* fix: better context manage
* feat: cli serve
* fix: readme
* extract to multi files
* fix: status cli rpc
* feat: create and login account
* fix: missing messagess
* fix: missing messages because data sync is not started.
* feat: start http service
* fix: lint
* fix: more build instructions.
* fix: review comments
2024-03-19 08:31:35 +08:00
Patryk Osmaczko
17c5ab414b
fix: ensure `CommunityDescription` reprocessing on decryption failure
...
Previously, `CommunityDescription` instances failing partial decryption
were not reprocessed due to duplicate message check. This commit fixes
the issue by bypassing the check for such descriptions, allowing their
reprocessing upon receiving missing encryption key.
fixes : status-im/status-desktop#13647
2024-03-18 22:24:24 +01:00
Andrea Maria Piana
67dfff2324
Add index to hash ratchet & cache processed description
2024-03-13 11:35:11 +00:00
Ibrahem Khalil
8c0e24dc26
Add favicons to external link previews ( #4788 )
2024-03-12 22:47:51 +02:00
Igor Sirotin
c8044bf400
chore: disable curated communities loop in tests ( #4894 )
2024-03-09 09:42:06 +00:00
Igor Sirotin
c3e7d3823f
fix: process empty albumId in albumMessages ( #4874 ) ( #4898 )
...
* fix: process empty albumId in albumMessages
* fix: right `prepareMessage` for empty album
2024-03-08 13:48:22 +00:00
Godfrain Jacques
0e37ec2058
Fix contact details large image is always empty ( #4864 )
...
fixes #13563 contact details largeImage is always empty
2024-03-06 09:25:19 -08:00
Igor Sirotin
bdb2b261a6
feature: view only channel reactions ( #4820 )
...
* CommunityMember channel role
* make generate
2024-03-01 17:15:38 +00:00
Igor Sirotin
168398d7a5
chore: faster TestCommunityOfflineEdit ( #4800 )
...
* chore: faster TestCommunityOfflineEdit
* chore: enable debug logs in TestSyncDeviceSuite
2024-02-27 19:38:40 +00:00
Patryk Osmaczko
0a1a66afa7
fix: prevent messenger being started twice
...
Previously, Messenger was `Start`ed multiple times, which resulted in
the shutdown process not being invoked on previously initialized
Messenger's sub-instances. This led to the failure of MVDS instance
shutdown causing massive error logs due to the attempts to read from a
closed database.
2024-02-27 11:00:29 +01:00
Patryk Osmaczko
eeaff0d3e3
fix: sync&backup channels encryption keys
...
fixes : status-im/status-desktop#13356
2024-02-26 16:41:30 +01:00
Mikhail Rogachev
eb5bad4868
Feat: Profile showcase validate collectible ownership ( #4737 )
...
* feat: profile showcase checks then presenting collectibles
* chore: more obvious CollectiblesManager configuration
2024-02-22 11:08:58 +03:00
Pablo Lopez
3f19972c8e
enable custom community storenodes ( #4532 )
...
* enable custom community store nodes
* fix
* fix
* fix
* fix
* cleanup
* fix
* migration
* fix
* cleanup
* fix
* cleanup
* fix
* fix
* cleanup
* message to update the community storenodes
* rename
* fix test
* wait for availability only if global storenode
* fix test
* fix typo
* sync community storenodes
* remove unused
* add tests
* fix imports
* fix todo
* unused
* pr comments
* pr feedback
* revert merge deleted
* fix lint
* fix db and perform ms request
* typo
* fix log
* fix go imports
* refactor handle message
* cleanup public message
* add tests
* fix test
* cleanup test
* fix test
* avoid making one file to big to keep codeclimate from complaining
* fix lint
* revert
* Update protocol/storenodes/database.go
Co-authored-by: richΛrd <info@richardramos.me>
* Update protocol/messenger_mailserver_cycle.go
Co-authored-by: richΛrd <info@richardramos.me>
* PR comment
* fix tx
* proto files
* pr comment
---------
Co-authored-by: richΛrd <info@richardramos.me>
2024-02-20 17:49:39 +02:00
Cuteivist
a866b8025e
feat: Community token received notification ( #4682 )
2024-02-19 14:55:38 +01:00
Igor Sirotin
85c0e282ae
feature: profile showcase preferences sync&backup ( #4729 )
2024-02-17 18:07:20 +00:00
Igor Sirotin
5149976ce0
fix: improve messenger offline detection ( #4703 )
2024-02-13 13:12:59 +00:00
Igor Sirotin
432bfeea2f
fix: flaky `MessengerStoreNodeRequestSuite` ( #4721 )
2024-02-12 22:30:19 +00:00
Mikhail Rogachev
3ea2002904
Feat: Modify grants for profile showcase use ( #4694 )
...
* chore: regenerate proto binaries
* feat: remove unused grant code for community's canPost
2024-02-11 15:11:04 +03:00
Patryk Osmaczko
7e8b61f888
feat: introduce `MessagesIterator`
...
Enables customization of iteration strategy for retrieved messages.
2024-02-09 16:02:17 +01:00
Igor Sirotin
0c2a935578
fix: fetch history when back online ( #4651 )
2024-01-30 18:13:18 +00:00
Igor Sirotin
1f0fc2935c
fix: clear waku envelopes cache when deleting a chat ( #4621 )
...
* chore: extract `ErrPermissionToJoinNotSatisfied`
* chore: disable resending messages in communities tests
* chore: move newTestMessenger extraOptions to testMessengerConfig
* chore: `WithTestStoreNode` messenger option
* feat: waku `ClearEnvelopesCache` method
* fix: call `ClearEnvelopesCache` when deleting chat
* chore: `TestBecomeMemberPermissions` checks messages after rejoin
2024-01-30 13:43:34 +00:00
Patryk Osmaczko
67e18a8ff0
chore: introduce `unhandledMessagesTracker`
2024-01-29 18:21:51 +01:00
Godfrain Jacques
5f6f7e502d
(fix/status-go) fix profile picture update/removal ( #4570 )
...
This PR fixes [9947](status-im/status-desktop#9947 ) and contains :
- Commit to fix the changing of custom picture and having the change
reflected on contact's side
- Commit to fix the deleting of picture and having the change reflected
on contact's side
- Rename confusing `ImageType` to `ImageFormat`
2024-01-24 12:09:28 -08:00
Andrea Maria Piana
e65760ca85
Add basic peersyncing
...
This commit adds basic syncing capabilities with peers if they are both
online.
It updates the work done on MVDS, but I decided to create the code in
status-go instead, since it's very tight to the application (similarly
the code that was the inspiration for mvds, bramble, is all tight
together at the database level).
I reused parts of the protobufs.
The flow is:
1) An OFFER message is sent periodically with a bunch of message-ids and
group-ids.
2) Anyone can REQUEST some of those messages if not present in their
database.
3) The peer will then send over those messages.
It's disabled by default, but I am planning to add a way to set up the
flags.
2024-01-23 12:46:17 +00:00
Patryk Osmaczko
bf5dcacdeb
refactor: introduce `newTestMessenger`
...
This avoids duplication and enables better configuration possibilities
for clients.
Next step is to cleanup all `newMessenger` derivatives in tests.
2024-01-22 13:08:58 +01:00
frank
ea3e59ffee
replace mention name with public key ( #4579 )
...
* replace mention with public key
* bump version
2024-01-18 21:18:01 +08:00
Michal Iskierko
3d7ab79d91
fix: execute BeforeDispatch only once
...
Issue #4557
2024-01-15 17:03:33 +01:00
Patryk Osmaczko
2a5dc6dec0
chore: remove boilerplate check of `communities.GetByID` clients
...
motivated by:
https://github.com/status-im/status-go/pull/4514#discussion_r1445808116
2024-01-10 18:58:17 +01:00
frank
5cb1972261
chore: return chats after mark all notifications read ( #4432 )
2024-01-10 09:36:33 +08:00
Godfrain Jacques
9d8b55e3d9
This PR (status-go) fixes #12821 ( #4516 )
...
- Add album_images column to the user_messages table
- Migrate the database
2024-01-08 10:18:57 -08:00
Michal Iskierko
53ac61bb8b
fix: a few adjustments for matterbridge
...
- exposig Online info
- adding ability to disable backup loop and auto message loop
Issue #12710
2024-01-08 14:21:26 +01:00
Cuteivist
846a4e2363
feat: Community token received notification ( #4515 )
2024-01-04 13:22:06 +01:00
Mikhail Rogachev
843bae5659
feat: Return seen/unseen messages count in MessnegerResponse ( #4461 )
2023-12-25 13:25:22 +07:00
Siddarth Kumar
151185c436
chore: log message contents before being sent ( #4494 )
...
When debugging message reliability we often get the number of messages sent and their IDs but we do not know the content of the messages and the type of message sent.
This commit adds debug level logs so that it helps in investigations.
ref : https://github.com/status-im/status-mobile/issues/18031
Closes [#18206 ](https://github.com/status-im/status-mobile/issues/18206 )
2023-12-23 09:42:45 +05:30
Patryk Osmaczko
1d3c618fb4
feat: encrypt `CommunityDescription` fields
...
Extended `CommunityDescription` with a `privateData` map. This map
associates each hash ratchet `key_id` and `seq_no` with an encrypted
`CommunityDescription`. Each encrypted instance includes only data
requiring encryption.
closes : status-im/status-desktop#12851
closes : status-im/status-desktop#12852
closes : status-im/status-desktop#12853
2023-12-22 18:17:06 +01:00
Cuteivist
dac7a0daf9
feat: Fetch community data for tokens ( #4497 )
2023-12-22 10:43:19 +01:00
Cuteivist
6bfe626558
feat: Use media server for community token images ( #4493 )
2023-12-21 16:05:29 +01:00
Igor Sirotin
92f0479a0c
chore: fetch contact with `StoreNodeRequestManager` ( #4484 )
2023-12-20 12:49:12 +00:00
Andrea Maria Piana
88fd1ce942
Surface acks, offers, requests to messenger
2023-12-18 10:33:05 +00:00
Dario Gabriel Lipicar
b3cc73aa7f
feat: use media server for community collectible images
2023-12-16 08:49:58 -03:00
Igor Sirotin
e3ef8c649a
chore: store node requests manager ( #4446 )
2023-12-15 19:50:12 +00:00
Cuteivist
7af313cd53
feat: Add community manager and fetch cached community metadata ( #4450 )
2023-12-14 17:50:46 +01:00
Cuteivist
dfe6baed9b
feat: Fetch community token image ( #4440 )
2023-12-12 08:37:57 +01:00
Godfrain Jacques
0f98a1294c
feature(@desktop/chat) Enhance message context menu with mark as unread ( #4382 )
...
fixes #10329
linked with PR #12879
- Adds capacity to mark a message as unread
- Adds capacity to mark a message with mention as unread
- Adds persistence to the marking of the message (change can be seen at
after reboot)
- Adds marking in right click contextual menu
2023-12-11 02:17:01 -06:00
Siddarth Kumar
e0bbb7e2ec
fix: send chats along with response after joining ( #4416 )
...
When an open community was created by Device A and shared with Device B and when Device B would request to join such a community, the general channel would be forever in loading state.
This happened because as part of messenger response the chatId of general channel was not sent and mobile client would not fetch that chat data.
This commit fixes that issue by sending chatId as part of messenger response right after the request to join community succeeds.
2023-12-07 21:32:37 +05:30
frank
d7e7792b51
Fix/duplicate accept cr messages ( #4367 )
...
* fix: Duplicate 'Contact Added' Notifications When Pair-Device User Accepts Request
* bump version
2023-12-05 12:22:20 +08:00
Vitaly Vlasov
384543d3a6
Re-send messages with ResendAutomatically=true
2023-11-30 10:46:38 +02:00
Mikhail Rogachev
317ad2f906
feat: Ignore AC notifications created before the request to join the community ( #4385 )
...
* fix: Ignore AC notifications created before the request to join the community
* review fixes
2023-11-29 19:28:04 +04:00
Mikhail Rogachev
31d0782f66
feat: Sync Mentions and Replies AC notifications and messages ( #4337 )
...
* feat: Marking Mentions and Replies AC notifications as read also marks corresponding message as seen
* feat: Marking message as seen marks as read corresponding notification (if there is so)
* chore: make messenger activity center test less flaky
* Update VERSION
2023-11-27 15:22:24 +04:00
Igor Sirotin
e32c5546e1
test: request community from storenode ( #4364 )
...
* feat: request community info from storenode test
* shutdownWaitGroup
* fix requestCommunityInfoFromMailserver timestamp roundin
2023-11-25 23:24:20 +00:00
Richard Ramos
c012f94681
fix: send request on non protected topics, and add missing shard information on invite
2023-11-18 12:12:06 -04:00
Vitaly Vlasov
1794b93c16
Always set PubsubTopic in filters
2023-11-18 02:26:34 +02:00
Patryk Osmaczko
dd5e45d81c
chore: delay message segments cleanup loop execution
2023-11-16 10:54:00 +01:00
Patryk Osmaczko
d04f99d56d
chore: cleanup message segments
...
closes : #4297
2023-11-15 16:52:35 +01:00
Igor Sirotin
010afb4b39
fix: self-contact related flaky tests ( #4312 )
2023-11-13 20:07:35 +00:00
richΛrd
2c954d42cf
feat: replace DefaultPubsubTopic by Shard 32 ( #4161 )
2023-11-09 20:29:15 -04:00
Mikhail Rogachev
03c32f620f
feat: Profile showcase data sharing ( #4209 )
...
* feat: Add profile showcase messaging part with ecrypted data
* feat: Separate profile showcase categories to provide ablity to store custom data
* fix: review fixes
* feat: move profile showcase out of contact data
* fix: create index on contact id for profile tables
* chore: remove logger from link preview
2023-11-09 22:59:01 +04:00
Patryk Osmaczko
f7042e4b9e
refactor: extract layers in StatusMessage
...
Extracted:
- TransportLayer
- EncryptionLayer
- ApplicationLayer
2023-11-08 21:46:22 +01:00
Igor Sirotin
eab6118f12
fix: edit message even if converting link previews to proto
2023-11-08 18:44:52 +00:00
Michal Iskierko
02e4cc6e1f
feat: Send envelopes to telemetry service
...
Issue #12430
2023-11-08 11:34:10 +01:00
Richard Ramos
c1a6771977
fix: non protected pubsub topic for communities
2023-10-30 15:47:32 -04:00
Boris Melnik
8ae6e3035b
feat(discord): Import single channel from discord ( #4160 )
2023-10-25 12:32:21 -04:00
Shinnok
3805662a18
fix(messenger_communities): block messages and reactions to token gated or spectated communities ( #4064 )
...
Which specifies that if a user is not a community member & a
chat member, he can't post, react or pin messages in that chat.
Notes:
- also fix&cleanup associated failing tests.
- refactor Community.CanPost() to reflect the new requirement.
- grant code is not fully implemented and is to be removed later.
Fixes https://github.com/status-im/status-desktop/issues/11915
2023-10-25 10:26:18 -04:00
Igor Sirotin
e83be20def
fix: shared links and link previews contain full self information ( #4169 )
...
* fix(StatusUnfurler): allow contact without icon
2023-10-24 11:15:32 +01:00
Patryk Osmaczko
dc6fe5613a
fix: decouple permissions reevaluation from torrent client readiness
2023-10-22 21:50:41 +02:00
Patryk Osmaczko
bd245ab45b
refactor: unify `Owned()` and `ControlledCommunities()`
2023-10-22 21:50:41 +02:00
Patryk Osmaczko
345851c396
feat: ensure unique control node across devices
...
closes : status-im/status-desktop#11962
2023-10-22 21:50:41 +02:00
frank
624996a7e9
only sync decisions/state of AC notifications ( #3979 )
2023-10-22 17:41:20 +08:00
Patryk Osmaczko
0881d8cdb0
Add queue for processing community description & configurable control node
2023-10-17 21:00:24 +01:00
Jonathan Rainville
c8910d69fe
feat(pairing): sync 1-1 chats and groups on pairing devices ( #4102 )
...
Fixes #3547
2023-10-17 09:24:15 -04:00
Igor Sirotin
aded258ccb
feature: Unfurl status links ( #4033 )
2023-10-13 13:25:34 +01:00
Richard Ramos
ace5b26137
fix: do not send the requests to join and cancel in the protected topic
2023-10-12 17:07:57 -04:00
richΛrd
ba5ed725ce
waku2: static shards ( #3944 )
...
- use protected topics for communities
- associate chats to pubsub topics and populate these depending if the chat belongs to a community or not
- mailserver functions should be aware of pubsub topics
- generate private key for pubsub topic protection when creating a community
- add shard cluster and index to communities
- setup shards for existing communities
- distribute pubsubtopic password
- fix: do not send the requests to join and cancel in the protected topic
- fix: undefined shard values for backward compatibility
- refactor: use shard message in protobuffers
2023-10-12 15:21:49 -04:00
Michal Iskierko
c85a110a31
feat(CommunityTokens): New deployment contracts and handling signer pub key
...
New contracts and contract go functions.
Adjust owner&master tokens deployment flow.
Create deployment signature.
CommunityTokens API for handling signer pubkey.
Issue #11954
2023-10-04 11:33:57 +02:00
Patryk Osmaczko
9d374bcadc
chore: use lamport timestamp for communities
...
closes : status-im/status-desktop#11961
2023-10-03 21:45:28 +02:00
Mohsen
c88b6e53af
[ #17288 ] fix: Mention is displayed as public key in PNs ( #4079 )
2023-10-03 19:29:27 +03:00
Jonathan Rainville
2afe5a269d
feat: up mention count for 1-1 messages each 2 min ( #4035 )
2023-09-25 11:29:36 -04:00
Igor Sirotin
a89dc020e1
fix: don't save sender as contact for certain message types ( #4052 )
2023-09-20 17:26:04 +01:00
Boris Melnik
d3c4ba315a
feat(albums): Adds album of images to AC notification ( #3977 )
2023-09-19 20:17:11 +03:00
frank
6bcf5f1289
Removed settings.Usernames and reactivate PreferredName ( #3964 )
...
* sync preferred name;
remove settings.usernames
* update account name when handle settings.preferred_name from backup message
* fix Error:Field validation for 'KeycardPairingDataFile' failed on the 'required' tag
* bump version
* rebase
2023-09-16 09:20:23 +08:00
Igor Sirotin
5422b867f3
Hotfix: mark `Chat` and `Pin` archive messages as seen ( #3992 ) ( #3999 )
2023-09-07 13:33:20 +03:00
Ibrahem Khalil
22ec4ac586
Link previews not working on message edit ( #3974 )
2023-08-31 10:21:25 +03:00
Andrea Maria Piana
4fba5647d1
Use NewContractMaker for messenger
2023-08-29 14:17:49 +01:00
Michal Iskierko
8425e6d238
feat(Collectibles): Change Collectibles service name to CommunityTokens.
...
Issue #12011
2023-08-29 11:01:01 +02:00
Richard Ramos
f9ec588c4e
feat: use protected topics for communities
...
refactor: associate chats to pubsub topics and populate these depending if the chat belongs to a community or not
refactor: add pubsub topic to mailserver batches
chore: ensure default relay messages continue working as they should
refactor: mailserver functions should be aware of pubsub topics
fix: use []byte for communityIDs
2023-08-23 13:56:00 -04:00
Andrea Maria Piana
8dd1b66d69
Always use protobufs by reference & generate handlers
2023-08-22 12:08:54 +01:00
Anthony Laibe
9d782edb4d
feat: wallet custom token with communities
2023-08-22 12:41:35 +02:00
Igor Sirotin
09a988607d
chore: Moved link preview unfurlers to a separate package ( #3917 )
...
* MessengerLinkPreviewsTestSuite
2023-08-21 22:31:32 +03:00
Ivan Belyakov
d106b449b6
feat(wallet): move wallet-related tables to a dedicated db.
...
The only place where appDB is used in wallet is activity,
which refers to `keycards_accounts` table. So a temporary
table `keycards_accounts` is created in wallet db and updated
before each activity query.
2023-08-18 09:00:56 +02:00
Mykhailo Prakhov
7eac9b170c
feat: community privileged user sync message ( #3879 )
2023-08-15 17:27:01 +02:00
Patryk Osmaczko
8b9ee803e2
feat: auto re-apply rejected community events
...
closes : status-im/status-desktop#11552
2023-08-11 12:46:45 +02:00
Sale Djenic
6ee7038809
fix: synced from field updated if recovered keypairs made fully operable
2023-08-10 16:09:29 +02:00
Pascal Precht
4b07960fba
feat: rehydrate community_tokens table upon account recovery
...
Closes https://github.com/status-im/status-desktop/issues/11188
2023-08-09 13:38:59 +02:00
Volodymyr Kozieiev
7560540392
Regularly update the list of curated communities ( #3827 )
...
Regularly update the list of curated communities
2023-08-07 13:54:00 +01:00
Patryk Osmaczko
ce82a8c0e5
chore: remove community invitations
2023-08-05 11:49:00 +02:00
Igor Sirotin
bbb8e99492
Fix syncing `blocked` contacts ( #3799 )
...
* fix(messenger_testing_utils): Always return response
* feat: test blocking/unblocking contacts with paired devices
* fix: Remove recursive sync on contact blocking
* rename `syncing` flag to `fromSyncing`
2023-08-04 13:41:24 +03:00
Igor Sirotin
d535cd95f8
fx: deprecate profile and timeline chats ( #3809 )
2023-08-03 17:16:11 +03:00
Patryk Osmaczko
47c568fb08
refactor: improve wrapped community description naming
2023-08-02 20:57:19 +02:00
Patryk Osmaczko
9eaf229161
refactor: improve community functions naming
2023-08-02 19:59:16 +02:00
Jonathan Rainville
cbb845b574
fix(messenger): fix handling reply with only one image ( #3816 )
...
If a message is sent with only 1 image, the album is not generated (no albumID), so then, in the notification handling code, it didn't use the right ID, because it thought it had to use the AlbumID for the message ID
2023-07-28 16:02:20 -04:00