oxen-io / session-android

A private messenger for Android.
https://getsession.org
GNU General Public License v3.0
1.86k stars 170 forks source link

SS-40 - MMS Notification Strings #1541

Closed AL-Session closed 2 months ago

AL-Session commented 2 months ago

Contributor checklist


Description

This PR performs the following work:

To test this code just send some messages with various file types (images, GIFs, audio, voice messages, etc.) between devices. If the receiving device does not have Session currently active the notification will be displayed containing a relevant emoji, (e.g., "📷 Attachment", etc.).

Additionally, if the receiving device has the Session open but at the home screen then the snippet for that conversation will be updated to use the "📷 Attachment" text (as appropriate for the attachment type).

While this ticket is really part of the Strings chunk of work, I've based this PR on dev because Strings will be worked on for a while longer and needs to have both the Groups and Onboarding chunks merged before it can be finalised (with new strings hooked into the new functionality) before Strings itself can be merged into dev. As such, if I'd based this on Strings it would have grown stale waiting for that to happen as we can't PR this code back into the non-PR'd Strings code!