mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 08:37:12 +00:00
fix(ActivityCenter): Update status-go ActivityCenterNotificationTypeCommunityKicked and fix accepting community requests from AC (#10283)
* fix(ActivityCenter): Move ActivityCenterNotificationTypeCommunityKicked to the right place Close #9811 * fix(ActivityCenter): fix accepting community request to join
This commit is contained in:
parent
aefa2b9f48
commit
c1b28d23c5
@ -125,12 +125,15 @@ QtObject:
|
||||
if (receivedData.activityCenterNotifications.len > 0):
|
||||
self.handleNewNotificationsLoaded(receivedData.activityCenterNotifications)
|
||||
|
||||
proc parseActivityCenterResponse*(self: Service, response: RpcResponse[JsonNode]) =
|
||||
proc parseActivityCenterNotifications*(self: Service, notificationsJson: JsonNode) =
|
||||
var activityCenterNotifications: seq[ActivityCenterNotificationDto] = @[]
|
||||
for notificationJson in notificationsJson:
|
||||
activityCenterNotifications.add(notificationJson.toActivityCenterNotificationDto)
|
||||
self.handleNewNotificationsLoaded(activityCenterNotifications)
|
||||
|
||||
proc parseActivityCenterResponse*(self: Service, response: RpcResponse[JsonNode]) =
|
||||
if response.result{"activityCenterNotifications"} != nil:
|
||||
for jsonMsg in response.result["activityCenterNotifications"]:
|
||||
activityCenterNotifications.add(jsonMsg.toActivityCenterNotificationDto)
|
||||
self.handleNewNotificationsLoaded(activityCenterNotifications)
|
||||
self.parseActivityCenterNotifications(response.result["activityCenterNotifications"])
|
||||
|
||||
proc setActiveNotificationGroup*(self: Service, group: ActivityCenterGroup) =
|
||||
self.activeGroup = group
|
||||
|
@ -1367,6 +1367,7 @@ QtObject:
|
||||
|
||||
self.events.emit(SIGNAL_COMMUNITY_EDITED, CommunityArgs(community: self.communities[communityId]))
|
||||
self.events.emit(SIGNAL_COMMUNITY_MEMBER_APPROVED, CommunityMemberArgs(communityId: communityId, pubKey: userKey, requestId: requestId))
|
||||
self.activityCenterService.parseActivityCenterNotifications(rpcResponseObj["response"]["result"]["activityCenterNotifications"])
|
||||
|
||||
except Exception as e:
|
||||
let errMsg = e.msg
|
||||
|
2
vendor/status-go
vendored
2
vendor/status-go
vendored
@ -1 +1 @@
|
||||
Subproject commit e5093124f2e2b4c51b8501bf1d48af9bcce71560
|
||||
Subproject commit 302437e32ecfedfa9964eeb6ea10fc0122c8a984
|
Loading…
x
Reference in New Issue
Block a user