}// TODO: setup a way for the mail notification to show up when someone receives mail when they were offline
}// TODO: setup a way for the mail notification to show up when someone receives mail when they were offline
}
}
publicbooleandeleteMail(intmailId){
publicbooleandeleteMail(intmailId){
Mailmessage=getMailById(mailId);
Mailmessage=getMail(mailId);
if(message!=null){
if(message!=null){
intindex=getMailIndex(message);
intindex=getMailId(message);
message.expireTime=(int)Instant.now().getEpochSecond();// Just set the mail as expired for now. I don't want to implement a counter specifically for an account...
message.expireTime=(int)Instant.now().getEpochSecond();// Just set the mail as expired for now. I don't want to implement a counter specifically for an account...
this.replaceMailByIndex(index,message);
this.replaceMailByIndex(index,message);
returntrue;
returntrue;
...
@@ -626,16 +626,13 @@ public class GenshinPlayer {
...
@@ -626,16 +626,13 @@ public class GenshinPlayer {