mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix: PKMessage.Member can be null
This commit is contained in:
parent
c958307698
commit
d0e9ad7193
1 changed files with 2 additions and 2 deletions
|
|
@ -275,12 +275,12 @@ public class ProxyService
|
|||
return FixSameNameInner(proxyName);
|
||||
|
||||
// last message was proxied by a different member
|
||||
if (pkMessage.Member.Id != member.Id)
|
||||
if (pkMessage.Member?.Id != member.Id)
|
||||
return FixSameNameInner(proxyName);
|
||||
}
|
||||
|
||||
// if we fixed the name last message and it's the same member proxying, we want to fix it again
|
||||
if (lastMessage.AuthorUsername == FixSameNameInner(proxyName) && pkMessage?.Member.Id == member.Id)
|
||||
if (lastMessage.AuthorUsername == FixSameNameInner(proxyName) && pkMessage?.Member?.Id == member.Id)
|
||||
return FixSameNameInner(proxyName);
|
||||
|
||||
// No issues found, current proxy name is fine.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue