Ignore storageId in Recipient.hasSameContent().

Was potentially causing unnecessary UI churn.
This commit is contained in:
Greyson Parrelli
2026-02-13 16:50:16 -05:00
committed by Alex Hart
parent 08254edae6
commit 6910ba6d2e
2 changed files with 6 additions and 1 deletions

View File

@@ -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();

View File

@@ -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 &&