-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Scalability changes: modify update group methods (#67) * feat: add getGroupInfo function * chore: add deprecation notice to getGroupByName * feat: add getGroupMemberCount function * feat: add getGroupMembers functions * feat: add getAllGroupMembers function * feat: add getGroupMemberStatus function * feat: ad getGroupMembersPublicKeys function * feat: add getAllGroupMembersPublicKeys function * feat: add updateGroupConfig, updateGroupMembers, updateGroupProfile * feat: add addMembers, removeMembers, addAdmins, removeAdmins * fix: only show group requests for members and not creator * Revert "fix: only show group requests for members and not creator" This reverts commit 0268196. * chore: add ConnectedUser extends User --------- Co-authored-by: Gbogboade Ayomide <[email protected]> * Scalability changes: add pgpv2 encryption in approve request (#68) * feat: add getGroupInfo function * chore: add deprecation notice to getGroupByName * feat: add getGroupMemberCount function * feat: add getGroupMembers functions * feat: add getAllGroupMembers function * feat: add getGroupMemberStatus function * feat: ad getGroupMembersPublicKeys function * feat: add getAllGroupMembersPublicKeys function * feat: add updateGroupConfig, updateGroupMembers, updateGroupProfile * feat: add addMembers, removeMembers, addAdmins, removeAdmins * fix: only show group requests for members and not creator * Revert "fix: only show group requests for members and not creator" This reverts commit 0268196. * chore: add ConnectedUser extends User * feat: add scalability changes to approve request --------- Co-authored-by: Gbogboade Ayomide <[email protected]> * Implement scalability changes in encryption and decryption of messages (#70) * feat: implement scalability changes for send message * chore: remove unused code for update group profile * chore: add scalability changes for decrypt --------- Co-authored-by: Gbogboade Ayomide <[email protected]> * Remove the user property from the ConnectedUser class (#75) * feat: add scalability changes fo updarte group * chore: add fromUser constructor for ConnectedUser --------- Co-authored-by: Gbogboade Ayomide <[email protected]> Co-authored-by: Madhur Gupta <[email protected]> * Update example app to incorporate scalability changes (#80) * feat: add update group info screen * feat: implement group scalability changes in example app * feat: disconnect socket when account logs out --------- Co-authored-by: Gbogboade Ayomide <[email protected]> Co-authored-by: Madhur Gupta <[email protected]>
- Loading branch information
1 parent
94214aa
commit 782b30c
Showing
83 changed files
with
1,485 additions
and
778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:push_restapi_dart/push_restapi_dart.dart'; | ||
|
||
void testUpdateGroupConfig() async { | ||
final result = await updateGroupConfig( | ||
scheduleAt: DateTime.now().add(Duration(hours: 3)), | ||
chatId: | ||
'64434400c9a61256451f025f1f8c7b34d9651af4a03ca063126e137572fb85ca'); | ||
|
||
print(result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:push_restapi_dart/push_restapi_dart.dart'; | ||
|
||
void testUpdateGroupMembers() async { | ||
final result = await updateGroupMembers( | ||
chatId: | ||
'a279ff975a104e8b04806bee18edc2c489b619663d6b192cbb07b4bbfd616e45', | ||
upsert: | ||
UpsertDTO(admins: ['0x29b8276AA5bc432e03745eF275ded9074faB5970'])); | ||
|
||
print(result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:push_restapi_dart/push_restapi_dart.dart'; | ||
|
||
void testUpdateGroupProfile() async { | ||
final result = await updateGroupProfile( | ||
groupImage: | ||
'https://tmpfiles.org/dl/3250024/screenshot2023-11-26at8.51.05pm.png', | ||
chatId: | ||
'64434400c9a61256451f025f1f8c7b34d9651af4a03ca063126e137572fb85ca', | ||
groupName: 'Ayo New name'); | ||
|
||
print(result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.