mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-26 12:07:21 +00:00
Debug
This commit is contained in:
parent
96dadbaaa8
commit
3a257d745b
@ -2151,7 +2151,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateInputPanel() {
|
private void updateInputPanel() {
|
||||||
boolean hasPendingFriendRequest = DatabaseFactory.getLokiThreadDatabase(this).hasPendingFriendRequest(threadId);
|
boolean hasPendingFriendRequest = !recipient.isGroupRecipient() && DatabaseFactory.getLokiThreadDatabase(this).hasPendingFriendRequest(threadId);
|
||||||
inputPanel.setEnabled(!hasPendingFriendRequest);
|
inputPanel.setEnabled(!hasPendingFriendRequest);
|
||||||
int hintID = hasPendingFriendRequest ? R.string.activity_conversation_pending_friend_request_hint : R.string.activity_conversation_default_hint;
|
int hintID = hasPendingFriendRequest ? R.string.activity_conversation_pending_friend_request_hint : R.string.activity_conversation_default_hint;
|
||||||
inputPanel.setHint(getResources().getString(hintID));
|
inputPanel.setHint(getResources().getString(hintID));
|
||||||
|
@ -978,7 +978,7 @@ public class PushDecryptJob extends BaseJob implements InjectableType {
|
|||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
} if (LinkPreviewUtil.isWhitelistedMediaUrl(body)) {
|
} else if (LinkPreviewUtil.isWhitelistedMediaUrl(body)) {
|
||||||
new LinkPreviewRepository(context).fetchGIF(context, body, attachmentOrNull -> Util.runOnMain(() -> {
|
new LinkPreviewRepository(context).fetchGIF(context, body, attachmentOrNull -> Util.runOnMain(() -> {
|
||||||
if (attachmentOrNull.isPresent()) {
|
if (attachmentOrNull.isPresent()) {
|
||||||
Attachment attachment = attachmentOrNull.get();
|
Attachment attachment = attachmentOrNull.get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user