Skip to content

Commit

Permalink
Shorten custom components ids
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Oct 22, 2024
1 parent 83e17e4 commit 8d51b8b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/src/modules/jellyfin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class JellyfinLoginSelectId {
}

class JellyfinLoginCustomId {
static String usernameIdentifier = 'JellyfinLoginCustomId_usernameIdentifier';
static String quickConnectIdentifier = 'JellyfinLoginCustomId_quickConnectIdentifier';
static String usernameIdentifier = 'JLCId_UI';
static String quickConnectIdentifier = 'JLCId_QCI';

final String identifier;
final Snowflake userId;
Expand Down Expand Up @@ -97,16 +97,16 @@ class JellyfinLoginCustomId {
userId: Snowflake.parse(idParts[1]),
parentId: Snowflake.parse(idParts[2]),
configName: idParts[3],
isModal: idParts[4] == 'true');
isModal: idParts[4] == '1');
}

@override
String toString() => "$identifier/$userId/$parentId/$configName/${isModal ? 'true' : 'false'}";
String toString() => "$identifier/$userId/$parentId/$configName/${isModal ? '1' : '0'}";
}

class RedeemWizarrInvitationId {
static String buttonIdentifier = 'ReminderRedeemWizarrInvitationButtonIdButton';
static String modalIdentifier = 'ReminderRedeemWizarrInvitationButtonIdModal';
static String buttonIdentifier = 'RWIBIB';
static String modalIdentifier = 'RWIBIM';

final String identifier;
final Snowflake userId;
Expand Down

0 comments on commit 8d51b8b

Please sign in to comment.