1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-22 21:16:57 +00:00

Merge branch 'master' into task/update-feed-view

This commit is contained in:
Austin Huang 2020-09-08 11:43:08 -04:00 committed by GitHub
commit 26b4d9d650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -289,8 +289,11 @@ public class DirectMessageThreadFragment extends Fragment {
}
} else if (which == 1) {
sendText(null, directItemModel.getItemId(), directItemModel.isLiked());
} else if (which == 2) {
if (String.valueOf(directItemModel.getUserId()).equals(myId))
}
else if (which == 2) {
if (directItemModel == null)
Toast.makeText(requireContext(), R.string.downloader_unknown_error, Toast.LENGTH_SHORT).show();
else if (String.valueOf(directItemModel.getUserId()).equals(myId))
new ThreadAction().execute("delete", directItemModel.getItemId());
else searchUsername(getUser(directItemModel.getUserId()).getUsername());
}

View File

@ -168,6 +168,7 @@ public final class Utils {
return null;
}
@NonNull
public static CharSequence getMentionText(@NonNull final CharSequence text) {
final int commentLength = text.length();
@ -1326,7 +1327,7 @@ public final class Utils {
"org.telegram.messenger",
"org.thunderdog.challegram",
"ir.ilmili.telegraph",
"org.telegram.BifToGram",
// "org.telegram.BifToGram", see GitHub issue 124
"org.vidogram.messenger",
"com.xplus.messenger",
"com.ellipi.messenger",
@ -1434,4 +1435,4 @@ public final class Utils {
}
return r;
}
}
}