Clean up a little more DM detritus.
This commit is contained in:
parent
525a62033a
commit
a3fbb9671c
3 changed files with 1 additions and 10 deletions
1
chat/global.d.ts
vendored
1
chat/global.d.ts
vendored
|
@ -11,5 +11,4 @@ declare interface IChatMessage {
|
|||
text_html: string;
|
||||
time: number;
|
||||
quotes: null | string;
|
||||
dm: boolean;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ export function ChatMessage({
|
|||
text_html,
|
||||
time,
|
||||
quotes,
|
||||
dm,
|
||||
} = message;
|
||||
const {
|
||||
id: userId,
|
||||
|
@ -98,12 +97,11 @@ export function ChatMessage({
|
|||
return (
|
||||
<div
|
||||
className={cx("ChatMessage", {
|
||||
ChatMessage__isDm: dm,
|
||||
ChatMessage__isOptimistic: isOptimistic,
|
||||
})}
|
||||
id={id}
|
||||
style={
|
||||
isMention && !dm
|
||||
isMention
|
||||
? {
|
||||
background: `#${themeColor}25`,
|
||||
borderLeft: `1px solid #${themeColor}`,
|
||||
|
@ -171,11 +169,6 @@ export function ChatMessage({
|
|||
<QuotedMessageLink message={quotedMessage} />
|
||||
</div>
|
||||
)}
|
||||
{!isDirect && dm && (
|
||||
<small className="ChatMessage-quoted-link text-primary">
|
||||
<em>(Sent only to you)</em>
|
||||
</small>
|
||||
)}
|
||||
<div className="ChatMessage-bottom">
|
||||
<div>
|
||||
<span
|
||||
|
|
|
@ -74,7 +74,6 @@ def send_system_reply(text):
|
|||
"quotes": [],
|
||||
"avatar": g.db.query(User).filter(User.id == NOTIFICATIONS_ID).one().profile_url,
|
||||
"user_id": NOTIFICATIONS_ID,
|
||||
"dm": False,
|
||||
"username": "System",
|
||||
"text": text,
|
||||
"text_html": sanitize(text),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue