Alkorin / webinc

Webex in console - Cisco Webex Teams Client for Linux/MacOS/Windows
GNU General Public License v3.0
17 stars 1 forks source link

Duplicate message #24

Closed Alkorin closed 5 years ago

Alkorin commented 5 years ago

Diff between first and duplicated message:

$ diff -ubr s62 s65 
--- s62 2019-02-04 14:16:13.780404110 +0100
+++ s65 2019-02-04 14:16:31.476480698 +0100
@@ -1,5 +1,5 @@
 {
-  "alertType": "none",
+  "alertType": "full",
   "data": {
     "activity": {
       "actor": {
@@ -53,7 +53,8 @@
     "data.activity.target.lastSeenActivityUUID": "f7394760-287d-11e9-91c6-1de89803a295"
   },
   "id": "62",
-  "sequenceNumber": 62,
+  "isDeliveryEscalation": true,
+  "sequenceNumber": 65,
   "timestamp": 1549285720608,
   "trackingId": "ROUTER_5C583958-A882-01BB-0053-6DBEFE380053"
 }
Alkorin commented 5 years ago

Still not fixed

$ git diff
diff --git a/space.go b/space.go
index 227fc0f..112343d 100644
--- a/space.go
+++ b/space.go
@@ -240,5 +240,9 @@ func (s *Space) AddActivity(a Activity) *Activity {
                copy(s.Activities[i+2:], s.Activities[i+1:length-1])
                s.Activities[i+1] = &a
        }
+
+       // Store in seen map
+       s.activitiesMap[a.Id] = a
+
        return &a
 }