mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
Debug
This commit is contained in:
parent
18eb3449ca
commit
57bbad6fab
@ -475,8 +475,8 @@ public class ConversationItem extends LinearLayout
|
|||||||
|
|
||||||
if (isCaptionlessMms(messageRecord)) {
|
if (isCaptionlessMms(messageRecord)) {
|
||||||
bodyText.setVisibility(View.GONE);
|
bodyText.setVisibility(View.GONE);
|
||||||
} else {
|
} else { ;
|
||||||
Spannable text = linkifyMessageBody(highlightMentions(messageRecord.getDisplayBody(context), isGroupThread), batchSelected.isEmpty());
|
Spannable text = highlightMentions(linkifyMessageBody(messageRecord.getDisplayBody(context), batchSelected.isEmpty()), isGroupThread);
|
||||||
text = SearchUtil.getHighlightedSpan(locale, () -> new BackgroundColorSpan(Color.YELLOW), text, searchQuery);
|
text = SearchUtil.getHighlightedSpan(locale, () -> new BackgroundColorSpan(Color.YELLOW), text, searchQuery);
|
||||||
text = SearchUtil.getHighlightedSpan(locale, () -> new ForegroundColorSpan(Color.BLACK), text, searchQuery);
|
text = SearchUtil.getHighlightedSpan(locale, () -> new ForegroundColorSpan(Color.BLACK), text, searchQuery);
|
||||||
|
|
||||||
@ -783,9 +783,9 @@ public class ConversationItem extends LinearLayout
|
|||||||
int startIndex = 0;
|
int startIndex = 0;
|
||||||
if (matcher.find(startIndex) && isGroupThread) {
|
if (matcher.find(startIndex) && isGroupThread) {
|
||||||
while (true) {
|
while (true) {
|
||||||
CharSequence userID = text.subSequence(matcher.start() + 1, matcher.end()); // +1 to get rid of the @
|
String userID = text.subSequence(matcher.start() + 1, matcher.end()).toString(); // +1 to get rid of the @
|
||||||
String userDisplayName;
|
String userDisplayName;
|
||||||
if (userID.equals(TextSecurePreferences.getLocalNumber(context))) {
|
if (userID.toLowerCase().equals(TextSecurePreferences.getLocalNumber(context).toLowerCase())) {
|
||||||
userDisplayName = TextSecurePreferences.getProfileName(context);
|
userDisplayName = TextSecurePreferences.getProfileName(context);
|
||||||
} else {
|
} else {
|
||||||
String publicChatID = LokiGroupChatAPI.getPublicChatServer() + "." + LokiGroupChatAPI.getPublicChatServerID();
|
String publicChatID = LokiGroupChatAPI.getPublicChatServer() + "." + LokiGroupChatAPI.getPublicChatServerID();
|
||||||
|
Loading…
Reference in New Issue
Block a user