fixed bug

This commit is contained in:
MathMan05
2024-08-11 22:40:18 -05:00
parent 77fb22c0d2
commit c3d1674e57
4 changed files with 7 additions and 4 deletions

View File

@@ -853,7 +853,7 @@ class Channel{
this.idToPrev.set(messagez.snowflake,this.lastmessageid);
this.lastmessageid=messagez.snowflake;
this.messageids.set(messagez.snowflake,messagez);
if(!this.infinitefocus){this.tryfocusinfinate();}
if(messagez.author===this.localuser.user){
this.lastreadmessageid=messagez.snowflake;
if(this.myhtml){
@@ -866,6 +866,7 @@ class Channel{
}
this.guild.unreads();
if(this===this.localuser.channelfocus){
if(!this.infinitefocus){this.tryfocusinfinate();}
this.infinite.addedBottom();
}
if(messagez.author===this.localuser.user){

View File

@@ -307,6 +307,7 @@ class Localuser{
}
case "MESSAGE_REACTION_ADD":
if(SnowFlake.hasSnowFlakeFromID(temp.d.message_id,Message)){
temp.d.guild_id??="@me";
const message=SnowFlake.getSnowFlakeFromID(temp.d.message_id,Message).getObject();
const guild=SnowFlake.getSnowFlakeFromID(temp.d.guild_id,Guild).getObject();
message.giveReaction(temp.d.emoji,new Member(temp.d.member,guild));