Andrea Maria Piana
84e91d85d2
Consolidate test methods
2020-12-22 15:43:48 +01:00
Andrea Maria Piana
4185420897
Send image on update
...
This commit changes the behavior so that when the image is updated it
will be published on the contact code topic.
If that does not happen because we are offline, it will be scheduled for
the next time we are online.
2020-12-22 15:43:48 +01:00
Eric Mastro
149877a939
feat: allow getPreviewLinkData for all whitelisted links ( #2094 )
...
* feat: allow getPreviewLinkData for all links
Only YouTube links were supported in `getPreviewLinkData` previously.
Now, any whitelisted links can have their data retreived using this function, returning the true content type (by examining the header bytes of the content).
feat: add tenor.com and giphy.com to whitelisted urls list
* Fix json format
* bump VERSION
* Lint urls.go
Co-authored-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2020-12-18 19:33:24 +11:00
Andrea Maria Piana
cdca42b90f
Dont lock on envelope sent
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
b3187abce1
Fix for int64 pointer bug
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
ba559c5291
Handled errors from defer rows.Close() and tx.Commit()
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
0db7a23d5f
Added chatContext type and set chatContext consts
2020-12-17 14:10:00 +01:00
Andrea Maria Piana
0a93513531
Add images field to HasCustomFields
2020-12-17 14:10:00 +01:00
Andrea Maria Piana
ac37e4f412
Add multiaccount to push notification tests
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
e0eb96a992
Fix failing tests due to account not present in test env
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
ca80140c1a
Resolved broken tests
2020-12-17 14:10:00 +01:00
Andrea Maria Piana
31a885ced8
remove photo path in favor of images in contact
2020-12-17 14:10:00 +01:00
Andrea Maria Piana
1adfa38611
Check hash in shouldPublish
2020-12-17 14:10:00 +01:00
Andrea Maria Piana
b7a6bbf1e7
dont send if empty images
2020-12-17 14:10:00 +01:00
Andrea Maria Piana
69de77c36a
return error on nil image
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
16fecf5520
Passing Master info to Messenger
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
0b6061b444
Added ChatIdentity to HandleApplication()
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
279c395f23
Added heavy logging to the chat identity builder
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
fe9e04ca13
Updating debug lvl to info
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
481c9c1287
Added debug to HandleChatIdentity
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
0df825164c
Placating the linting old ones
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
5d0906b9d8
Resolving fix for receiving chat identities with empty images map
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
43b8e94b2b
Resolved an additional fail test related to multiaccounts in the Messenger
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
0c1ebaa547
Resolving goimports lint ... :/
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
5aa8492315
Fix failing tests
2020-12-17 14:10:00 +01:00
Andrea Maria Piana
32907b59b2
Fix linting
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
1b527906ee
Resolved hopefully the last of the lint
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
7b2d96de05
Resolved yet more lint
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
b7a7035894
Resolved further linting issues
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
a77a40fdf4
Resolved linting issues
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
190b1a70f9
Removed usages of multiaccounts.Account.PhotoPath
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
193ab30ada
Refactor injecting multiaccounts into messenger and service
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
7b230d5c9d
Updated message handling from public and private chat
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
056649fd73
Changed identity image migration
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
a564066c4f
Added public chat ChatIdentity publish
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
48a34072bb
Added ChatIdentity attachment to ContactCodeAdvert
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
1f1e784d80
Added additional registry testing
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
7b77ae9eab
Fix CI register persistence bug
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
5426fac0a3
Added CHAT_IDENTITY application meta type
...
also make generate
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
fe4b7c6d80
Added migrations for chat_identity_last_published register
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
af7117070f
Added protocol register of ChatIdentity last published times per chat
...
This register is only used for publishing ChatIdentity to public chat
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
1b59d088d8
Integrated GetMimeType()
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
5a4e23a0ea
Fix protobuf ImageType change
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
e8d883edb6
bindata for profile_image migrations
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
6bab64cc9b
Fix getImageMessageMIME() bug
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
7f8d3674d4
Removing superfluous image types
...
Additionally updating the protobufs that use ImageType
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
c6accd8ce3
make generate
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
d77f85b7df
Added file decoding
...
reused protocol file type detection
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
d7eac44c77
Updated comment on IdentityImage mapping
2020-12-17 14:10:00 +01:00
Samuel Hawksby-Robinson
5043c1d1af
Updated ImageType to handle SVG and AVATAR image types
2020-12-17 14:10:00 +01:00