Show join date in search result

This commit is contained in:
Riko Sakurauchi 2020-02-09 01:52:39 +08:00
parent ca13a7f054
commit 6bfae6dc12
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF
3 changed files with 6 additions and 3 deletions

View File

@ -302,7 +302,7 @@ android {
}
}
defaultConfig.versionCode = 10 * 1858
defaultConfig.versionCode = 10 * 1859
applicationVariants.all { variant ->
variant.outputs.all { output ->

View File

@ -19,7 +19,7 @@ public class BuildVars {
public static boolean USE_CLOUD_STRINGS = true;
public static boolean CHECK_UPDATES = true;
public static boolean TON_WALLET_STANDALONE = false;
public static int BUILD_VERSION = 1858;
public static int BUILD_VERSION = 1859;
public static String BUILD_VERSION_STRING = "5.14.0.4";
public static int APP_ID = 336779; //obtain your own APP_ID at https://core.telegram.org/api/obtaining_api_id
public static String APP_HASH = "b91eefacc86747c068c8d8a16b41500d"; //obtain your own APP_HASH at https://core.telegram.org/api/obtaining_api_id

View File

@ -2261,12 +2261,15 @@ public class ChatUsersActivity extends BaseFragment implements NotificationCente
case 0: {
TLObject object = getItem(position);
TLRPC.User user;
String joinDate = null;
if (object instanceof TLRPC.User) {
user = (TLRPC.User) object;
} else if (object instanceof TLRPC.ChannelParticipant) {
user = getMessagesController().getUser(((TLRPC.ChannelParticipant) object).user_id);
joinDate = LocaleController.formatDateJoined(((TLRPC.ChannelParticipant) object).date);
} else if (object instanceof TLRPC.ChatParticipant) {
user = getMessagesController().getUser(((TLRPC.ChatParticipant) object).user_id);
joinDate = LocaleController.formatDateJoined(((TLRPC.ChatParticipant) object).date);
} else {
return;
}
@ -2345,7 +2348,7 @@ public class ChatUsersActivity extends BaseFragment implements NotificationCente
ManageChatUserCell userCell = (ManageChatUserCell) holder.itemView;
userCell.setTag(position);
userCell.setData(user, name, username, false);
userCell.setData(user, name, username != null ? username : joinDate, false);
break;
}