Merge branch 'main' into jank/channel-topic

This commit is contained in:
MathMan05 2024-08-20 09:23:32 -05:00 committed by GitHub
commit aa9855e4d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 576 additions and 415 deletions

View file

@ -108,7 +108,7 @@ class Group extends Channel{
this.messageids=new Map();
this.permission_overwrites=new Map();
this.lastmessageid=SnowFlake.getSnowFlakeFromID(json.last_message_id,Message);
this.lastmessageid??=new SnowFlake("0",undefined);
this.lastmessageid??=null;
this.mentions=0;
this.setUpInfiniteScroller();
this.position=Math.max(this.lastmessageid.getUnixTime(),this.snowflake.getUnixTime());