You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched searched open and closed issues for duplicates
I am submitting a bug report for existing functionality that does not work as intended
This isn't a feature request or a discussion topic
Bug description
When sending a sticker in Signal, only the sticker is transmitted by default without any text. However, using a hook script to append text after sending a sticker results in the following behavior:
The receiver only sees the text message without the sticker.
Clicking on this text causes the app to crash on the receiver's side.
Crash Analysis
The crash occurs in the following file: ConversationItem.java
@Override
public @NonNull MultiselectPart getMultiselectPartForLatestTouch() {
MultiselectCollection parts = conversationMessage.getMultiselectCollection();
if (parts.isSingle()) {
return parts.asSingle().getSinglePart();
}
MultiselectPart top = parts.asDouble().getTopPart();
MultiselectPart bottom = parts.asDouble().getBottomPart();
if (hasThumbnail(messageRecord)) {
return isTouchBelowBoundary(mediaThumbnailStub.require()) ? bottom : top;
} else if (hasDocument(messageRecord)) {
return isTouchBelowBoundary(documentViewStub.get()) ? bottom : top;
} else if (hasAudio(messageRecord)) {
return isTouchBelowBoundary(audioViewStub.get()) ? bottom : top;
} {
throw new IllegalStateException("Found a situation where we have something other than a thumbnail or a document.");
}
}
Cause
The IllegalStateException is triggered in the final else block when none of the conditions are satisfied. This happens because the malformed message, created by appending text to a sticker, results in an incomplete MultiselectCollection.
Guidelines
Bug description
When sending a sticker in Signal, only the sticker is transmitted by default without any text. However, using a hook script to append text after sending a sticker results in the following behavior:
The receiver only sees the text message without the sticker.
Clicking on this text causes the app to crash on the receiver's side.
Crash Analysis
The crash occurs in the following file: ConversationItem.java
Cause
The
IllegalStateException
is triggered in the final else block when none of the conditions are satisfied. This happens because the malformed message, created by appending text to a sticker, results in an incomplete MultiselectCollection.This report is prepared in collaboration with @dawitngoliath, @dg2vy, @Pongchi, @moooooji and @qw3rtyou
Screenshots
No response
Device
Samsung SM-N976N
Android version
14
Signal version
7.26.1
Link to debug log
https://debuglogs.org/android/7.26.1/fb32ed6c1c5b0671688cf2b2785a543942854f16edac0e0cac18b73072ce890c
The text was updated successfully, but these errors were encountered: