Remove username field

This commit is contained in:
Natsumi
2022-10-26 03:07:53 +13:00
parent 41cbdcf354
commit 3595dfd86d
2 changed files with 8 additions and 28 deletions

View File

@@ -1053,7 +1053,6 @@ speechSynthesis.getVoices();
args.ref = this.applyCurrentUser(json);
this.applyUser({
id: json.id,
username: json.username,
displayName: json.displayName,
bio: json.bio,
bioLinks: json.bioLinks,
@@ -1455,7 +1454,6 @@ speechSynthesis.getVoices();
if (typeof ref === 'undefined') {
ref = {
id: '',
username: '',
displayName: '',
userIcon: '',
bio: '',
@@ -7642,12 +7640,6 @@ speechSynthesis.getVoices();
}
var NAME = ctx.name.toUpperCase();
var match = NAME.includes(QUERY);
if (!match) {
var uname = String(ctx.ref.username);
match =
uname.toUpperCase().includes(QUERY) &&
!uname.startsWith('steam_');
}
if (!match && ctx.memo) {
match = String(ctx.memo).toUpperCase().includes(QUERY);
}
@@ -17568,14 +17560,7 @@ speechSynthesis.getVoices();
$app.methods.friendsListSearchChange = function () {
var filters = [...this.friendsListSearchFilters];
if (filters.length === 0) {
filters = [
'Display Name',
'User Name',
'Rank',
'Status',
'Bio',
'Memo'
];
filters = ['Display Name', 'Rank', 'Status', 'Bio', 'Memo'];
}
var results = [];
if (this.friendsListSearch) {
@@ -17590,12 +17575,6 @@ speechSynthesis.getVoices();
}
if (query && filters) {
var match = false;
if (!match && filters.includes('User Name')) {
var uname = String(ctx.ref.username);
match =
uname.toUpperCase().includes(query) &&
!uname.startsWith('steam_');
}
if (
!match &&
filters.includes('Display Name') &&