Skip to content

Commit

Permalink
Enable the sending of long messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Mar 22, 2019
1 parent cfdcd61 commit ccfcfa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@
<item name="android:padding">2dp</item>
<item name="android:background">@null</item>
<item name="android:maxLines">4</item>
<!-- TODO: Switch to 64kb to enable long message sending. -->
<!--<item name="android:maxLength">65536</item>-->
<item name="android:maxLength">2000</item>
<item name="android:maxLength">65536</item>
<item name="android:textColor">?conversation_item_sent_text_primary_color</item>
<item name="android:capitalize">sentences</item>
<item name="android:autoText">true</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
package org.thoughtcrime.securesms.util;

public class PushCharacterCalculator extends CharacterCalculator {
// TODO: Switch to 64kb to enable long message sending.
// private static final int MAX_TOTAL_SIZE = 64 * 1024;
private static final int MAX_TOTAL_SIZE = 2000;
private static final int MAX_TOTAL_SIZE = 64 * 1024;
private static final int MAX_PRIMARY_SIZE = 2000;
@Override
public CharacterState calculateCharacters(String messageBody) {
Expand Down

0 comments on commit ccfcfa7

Please sign in to comment.