mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Fix to make emoji work in push groups.
This commit is contained in:
parent
43c1576aab
commit
52ff4ecfd2
@ -79,8 +79,8 @@ public class TextSlide extends Slide {
|
||||
PduPart part = new PduPart();
|
||||
|
||||
try {
|
||||
part.setData(message.getBytes(CharacterSets.MIMENAME_ISO_8859_1));
|
||||
|
||||
part.setData(message.getBytes(CharacterSets.MIMENAME_UTF_8));
|
||||
|
||||
if (part.getData().length == 0)
|
||||
throw new AssertionError("Part data should not be zero!");
|
||||
|
||||
@ -88,8 +88,8 @@ public class TextSlide extends Slide {
|
||||
Log.w("TextSlide", "ISO_8859_1 must be supported!", e);
|
||||
part.setData("Unsupported character set!".getBytes());
|
||||
}
|
||||
|
||||
part.setCharset(CharacterSets.ISO_8859_1);
|
||||
|
||||
part.setCharset(CharacterSets.UTF_8);
|
||||
part.setContentType(ContentType.TEXT_PLAIN.getBytes());
|
||||
part.setContentId((System.currentTimeMillis()+"").getBytes());
|
||||
part.setName(("Text"+System.currentTimeMillis()).getBytes());
|
||||
|
Loading…
x
Reference in New Issue
Block a user