mirror of
https://github.com/oxen-io/session-android.git
synced 2025-05-19 12:08:22 +00:00
Temporary fix until jake fixes this shit
// FREEBIE
This commit is contained in:
parent
49ab1e7bd5
commit
da75268545
@ -957,7 +957,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
|
|
||||||
private void calculateCharactersRemaining() {
|
private void calculateCharactersRemaining() {
|
||||||
int charactersSpent = composeText.getText().toString().length();
|
int charactersSpent = composeText.getText().toString().length();
|
||||||
CharacterState characterState = sendButton.getSelectedTransport().calculateCharacters(charactersSpent);
|
TransportOption transportOption = sendButton.getSelectedTransport();
|
||||||
|
|
||||||
|
if (transportOption != null) {
|
||||||
|
CharacterState characterState = transportOption.calculateCharacters(charactersSpent);
|
||||||
|
|
||||||
if (characterState.charactersRemaining <= 15 || characterState.messagesSpent > 1) {
|
if (characterState.charactersRemaining <= 15 || characterState.messagesSpent > 1) {
|
||||||
charactersLeft.setText(characterState.charactersRemaining + "/" + characterState.maxMessageSize
|
charactersLeft.setText(characterState.charactersRemaining + "/" + characterState.maxMessageSize
|
||||||
@ -967,6 +970,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
charactersLeft.setVisibility(View.GONE);
|
charactersLeft.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private boolean isExistingConversation() {
|
private boolean isExistingConversation() {
|
||||||
return this.recipients != null && this.threadId != -1;
|
return this.recipients != null && this.threadId != -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user