fixed bug
This commit is contained in:
parent
77fb22c0d2
commit
c3d1674e57
4 changed files with 7 additions and 4 deletions
|
@ -859,9 +859,6 @@ 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) {
|
||||
|
@ -875,6 +872,9 @@ class Channel {
|
|||
}
|
||||
this.guild.unreads();
|
||||
if (this === this.localuser.channelfocus) {
|
||||
if (!this.infinitefocus) {
|
||||
this.tryfocusinfinate();
|
||||
}
|
||||
this.infinite.addedBottom();
|
||||
}
|
||||
if (messagez.author === this.localuser.user) {
|
||||
|
|
|
@ -299,6 +299,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));
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue