3914 Commits

Author SHA1 Message Date
frank
f36b943202
fix flaky test TestSyncCommunityRequestDecisionAccept (#4257) 2023-11-03 18:55:44 +08:00
Andrea Maria Piana
c76ca62375 Fix keycard test 2023-11-03 10:43:59 +00:00
Igor Sirotin
c27384680a
feat: new configurable endpoint RequestCommunityInfoFromMailserverV2 (#4238)
* StatusUnfurler: use shard from url
2023-11-03 10:30:24 +00:00
Patryk Osmaczko
25f25e9853 chore: populate Community with PubsubTopicPrivateKey
part of: status-im/status-desktop#12408
2023-11-03 11:27:43 +01:00
Anthony Laibe
a0bd3c9a94 Fix: allow zero tx
If bonder fees are 0 there is no need to check if  bonder fees are bigger or equal to amount to prevent impossible transaction
2023-11-03 09:22:29 +01:00
Sale Djenic
11a3612290 feat: support signing of a join/edit community request from within the app or keycard v0.171.9 2023-11-03 07:49:01 +01:00
Ivan Belyakov
cb3a88f93a fix(build): avoid removing untracked git changes by make clean
Use `make deep-clean` for deep cleaning
2023-11-03 07:37:48 +01:00
frank
054356fed2
remove sync AC state (#4241) 2023-11-02 23:07:03 +08:00
Igor Sirotin
9f69c32593
fix(wakuv2): post envelopes previously cached but not processed (#4246) 2023-11-02 14:16:59 +00:00
Dario Gabriel Lipicar
25d8c52dd5 feat: implement generalized collectibles filter 2023-11-02 11:14:20 -03:00
Dario Gabriel Lipicar
c17829bf8d fix: properly fill collectible community data 2023-11-02 11:14:20 -03:00
Cuteivist
f57c6a26b5
fix: Correct skip check statement (#4248) 2023-11-02 09:11:48 +01:00
yqrashawn
b65eda3f42
feat: new deeplink status-im->status-app (#4198) v0.171.8 2023-11-02 13:56:06 +08:00
Andrea Maria Piana
d3558d8e09
Disable waku test 2023-11-01 19:27:53 +00:00
Andrea Maria Piana
a89a386c82
Increase timeout on waku tests 2023-11-01 15:47:41 +00:00
Andrea Maria Piana
fd76367be7
[Fixes: #4206] Don't remove filters if not needed
Filters were removed and recreated which resulted in a flaky test.
This was not needed as the filters didn't change, and they won't be
recreated if we reinstall the same filter.
2023-11-01 12:47:35 +00:00
Mykhailo Prakhov
eb437e9d8d
feat: kick all members after ownership change and auto-accept after sharing the address (#4187)
feat: kick all members after the ownership change and auto-accept after sharing the address
2023-10-31 15:20:40 +01:00
Roman Volosovskyi
4e0583263a
_ 2023-10-31 13:50:26 +01:00
Roman Volosovskyi
1a6c421cad
[#4087] Omit history scanning on generated multiacc creation on desktop client 2023-10-31 13:46:27 +01:00
Patryk Osmaczko
e3a8f5630a chore: add CommunityID to ProtectedTopic 2023-10-31 10:03:31 +01:00
Patryk Osmaczko
627ac9449b refactor: remove always nil shard parameter in HandleCommunityDescriptionMessage 2023-10-31 10:03:31 +01:00
Richard Ramos
c1a6771977 fix: non protected pubsub topic for communities 2023-10-30 15:47:32 -04:00
Andrea Maria Piana
85f8c92cde Delete processed messages & add tests
This commit adds a test for out of order messages, which were only
implicitly tested.
It also deletes them after being processed, otherwise they would be
reproceessed each time a message was sent
2023-10-30 14:11:29 +00:00
Andrea Maria Piana
d47b5733c0
fix order of drop statement 2023-10-30 10:56:32 +00:00
Andrea Maria Piana
360c2d50d4 Fix issues with out of order encryption and batched messages
This commit fixes 3 issues:

1) In some cases, the hash ratchet was not correctly found
2) Out of order messages were not processed correctly as the wrong error
   was returned
3) Batched non datasync messages were not processed correctly

Fixes: #4170
2023-10-30 10:11:32 +00:00
Cuteivist
3c5b0529c7
fix: Add network id for multi tx (#4199) 2023-10-30 10:03:29 +01:00
Cuteivist
fa5765cf83
fix: Update timestamp when upserting multi tx (#4224) 2023-10-30 07:53:22 +01:00
Jonathan Rainville
0cac2af1db
fix(community): getting kicked out of a community should still spectate (#4217)
Fixes https://github.com/status-im/status-desktop/issues/12558

When getting kicked out of  a community, before we used to leave the community completely, but just keep the filters on.
That created a problem when reopening the app, because the community disappeared and could even create a problem in desktop where it tried to open the last opened community but it's no longer there.

The fix now is that when getting kicked out, we instead just remove ourselves from the community and set Joined to false, but we keep the community spectated.
2023-10-27 15:20:08 -04:00
Patryk Osmaczko
e304fe3344 chore: enable community rekey loop 2023-10-27 16:29:26 +02:00
Dario Gabriel Lipicar
a38b34ae49 feat: cache community metadata in wallet
Fixes #12521
2023-10-26 17:36:45 -03:00
Dario Gabriel Lipicar
dca38d1d32 fix: small openseaV2 client fix 2023-10-26 17:36:45 -03:00
Cuteivist
e5fbe40b9a
fix: Show community token mint as Mint tx type (#4214) 2023-10-26 20:39:31 +02:00
Igor Sirotin
a6d46756f5
fix(ImageUnfurler): set title for image links (#4215) 2023-10-26 17:52:52 +01:00
Teodor M. Ionita
4744ee899e Add TestPinMessageInCommunityChat, adjust pin permissions
Also check pin post permission a bit earlier for the sender, with
canPost() in sendPinMessage(), even though there is a later check down
the line in dispatchMessage().

Fixes #4138
2023-10-26 13:22:32 +03:00
frank
74396b461d
Bump version to 0.171.7 (#4211) v0.171.7 2023-10-26 14:08:58 +08:00
frank
06a9fe4f81
fix: sync decision on join community request (#4190)
* fix: sync community request decision

* make generate

* simplify test

* make generate
2023-10-26 12:17:18 +08:00
Mohsen
27b770c41b
fix: publish group member info (#4184) v0.171.6 2023-10-25 21:11:04 +03:00
Patryk Osmaczko
445135eb94 fix: ensure receivedMessage.CommunityID in chat message handler is set
This enables clients to obtain invitation's community ID even when
description processing is queued.

part of: status-im/status-desktop#12481
2023-10-25 20:10:01 +02:00
Jonathan Rainville
6e0d4e697f
chore(messenger_communities): use new name for community Access (#4210) 2023-10-25 13:33:49 -04:00
Cuteivist
debf3b6e4d
feat: Added ERC20 community id (#4189) 2023-10-25 18:49:18 +02:00
Boris Melnik
8ae6e3035b
feat(discord): Import single channel from discord (#4160) 2023-10-25 12:32:21 -04:00
Patryk Osmaczko
3452eb72a8 refactor: remove community invitation only access 2023-10-25 17:34:37 +02:00
Patryk Osmaczko
b262d7e88c refactor: rename Community.OnRequest() -> AutoAccept() 2023-10-25 17:34:37 +02:00
Patryk Osmaczko
b321f28c9d refactor: update community access enum naming 2023-10-25 17:34:37 +02: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
Roman Volosovskyi
9d59d889f6
[#3833] Increase intreval of new blocks detection command 2023-10-25 14:45:06 +02:00
Andrea Maria Piana
08e95cd1ee
Bump version to 0.171.5 2023-10-25 11:26:30 +01:00
Igor Sirotin
c6ff315dfc
fix: set pubsubTopic in request community info from mailserver (#4194) v0.171.5 2023-10-25 11:13:35 +01:00
Mykhailo Prakhov
b08125890e
fix: SetSignerPublicKey return address with 0x prefix (#4193) 2023-10-24 22:17:02 +02:00
Andrea Maria Piana
23f71c1125 Fix encryption id && rekey with a single message
This commit changes the format of the encryption id to be based off 3
things:

1) The group id
2) The timestamp
3) The actual key

Previously this was solely based on the timestamp and the group id, but
this might lead to conflicts. Moreover the format of the key was an
uint32 and so it would wrap periodically.

The migration is a bit tricky, so first we cleared the cache of keys,
that's easier than migrating, and second we set the new field hash_id to
the concatenation of group_id / key_id.
This might lead on some duplication in case keys are re-received, but it
should not have an impact on the correctness of the code.

I have added 2 tests covering compatibility between old/new clients, as
this should not be a breaking change.

It also adds a new message to rekey in a single go, instead of having to
send multiple messages
2023-10-24 20:48:54 +01:00