mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-20 17:57:29 +00:00
Ignore storageId in Recipient.hasSameContent().
Was potentially causing unnecessary UI churn.
This commit is contained in:
committed by
Alex Hart
parent
08254edae6
commit
6910ba6d2e
@@ -66,6 +66,7 @@ public class ComposeText extends EmojiEditText {
|
||||
private MentionRendererDelegate mentionRendererDelegate;
|
||||
private SpoilerRendererDelegate spoilerRendererDelegate;
|
||||
private MentionValidatorWatcher mentionValidatorWatcher;
|
||||
private MessageSendType lastMessageSendType;
|
||||
|
||||
@Nullable private InputPanel.MediaListener mediaListener;
|
||||
@Nullable private CursorPositionChangedListener cursorPositionChangedListener;
|
||||
@@ -221,6 +222,11 @@ public class ComposeText extends EmojiEditText {
|
||||
}
|
||||
|
||||
public void setMessageSendType(MessageSendType messageSendType) {
|
||||
if (messageSendType.equals(lastMessageSendType)) {
|
||||
return;
|
||||
}
|
||||
lastMessageSendType = messageSendType;
|
||||
|
||||
int imeOptions = (getImeOptions() & ~EditorInfo.IME_MASK_ACTION) | EditorInfo.IME_ACTION_SEND;
|
||||
int inputType = getInputType();
|
||||
|
||||
|
||||
@@ -809,7 +809,6 @@ class Recipient(
|
||||
profileAvatar == other.profileAvatar &&
|
||||
notificationChannelValue == other.notificationChannelValue &&
|
||||
sealedSenderAccessModeValue == other.sealedSenderAccessModeValue &&
|
||||
storageId.contentEquals(other.storageId) &&
|
||||
mentionSetting == other.mentionSetting &&
|
||||
wallpaperValue == other.wallpaperValue &&
|
||||
chatColorsValue == other.chatColorsValue &&
|
||||
|
||||
Reference in New Issue
Block a user