9 Commits

Author SHA1 Message Date
Andrea Maria Piana
3e80b1ecaa Dont show notification from inactive chats 2021-04-23 08:16:35 +02:00
Samuel Hawksby-Robinson
759f7bbeb3 Added granual locking on Messenger 2021-04-16 20:42:40 +02:00
Andrea Maria Piana
c55659b4f6
Add community notifications (#2160)
This commit introduces the following changes:

- `local-notifications` require as body an interface complying with
`json.Marshaler`
- removed unmarshaling of `Notifications` as not used (we only Marshal
notifications)
- `protocol/messenger.go` creates directly a `Notification` instead of
having an intermediate format
- add community notifications on request to join
- move parsing of text in status-go for notifications
2021-03-31 18:23:45 +02:00
Andrea Maria Piana
eec9518825
Revert "Revert "fix protocol.MessageNotificationBody marshalling""
This reverts commit cf0a16dff15c327a34074d0e6ceae4ded52f73e5.
2021-02-05 16:48:46 +02:00
Andrea Maria Piana
84db2fb472
Revert "Revert "Expand Local Notifications to support multiple Notification types (#2100)""
This reverts commit 5887337b881561fa1418239d587d1ce2116c6ba8.
2021-02-05 16:48:45 +02:00
Andrea Maria Piana
5887337b88
Revert "Expand Local Notifications to support multiple Notification types (#2100)"
This reverts commit 46157dc4dc949690d66e047f451df1458a37ae23.
2021-01-26 09:40:05 +01:00
Andrea Maria Piana
cf0a16dff1
Revert "fix protocol.MessageNotificationBody marshalling"
This reverts commit fbec17af18678ae14afa89d1fd5a59f635203646.
2021-01-26 09:40:04 +01:00
Roman Volosovskyi
fbec17af18 fix protocol.MessageNotificationBody marshalling 2021-01-15 14:00:51 +01:00
Samuel Hawksby-Robinson
46157dc4dc
Expand Local Notifications to support multiple Notification types (#2100)
* Initial work on expanding Local Notifications

Adding functionality to support multiple notification types in Notification.Body. Currently have a bug that I think is caused by a the jsonMarshal func not working as intented, need to resolve this next before proceeding

* Fixed json.Marshaller issue and implemented json.Unmarshaller

* Tweak errors, go convention is errors don't begin with capital letters

* Added notificationMessageBody with un/marshalling

Also removed the Body interface

* Added check for bodyType mismatch

* Implement building and sending new message notifications

* Refactor to remove cycle imports

* Resolved linting issue ... Hopefully

* Resolving an implicit memory aliasing in a for loop

* version bump

* Added Notification.Category consts
2021-01-12 14:28:27 +00:00