5892ccee97
* Revert "Revert "Switch comments/chat to rich text editor (#703)""
This reverts commit 33906adfe4
.
* Fix typing after being weird on Android
Issue: character from mention gets deleted. Most weird on Swiftkey:
mention gets duplicated instead of deleting.
See https://github.com/ProseMirror/prosemirror/issues/565
https://bugs.chromium.org/p/chromium/issues/detail?id=612446
The keyboard still closes unexpectedly when you delete :(
* On reply, put space instead of \n after mention
* Remove image upload from placeholder text
- Redundant with image upload button
- Too long on mobile
* fix dependency
24 lines
588 B
TypeScript
24 lines
588 B
TypeScript
import type { JSONContent } from '@tiptap/core'
|
|
|
|
// Currently, comments are created after the bet, not atomically with the bet.
|
|
// They're uniquely identified by the pair contractId/betId.
|
|
export type Comment = {
|
|
id: string
|
|
contractId?: string
|
|
groupId?: string
|
|
betId?: string
|
|
answerOutcome?: string
|
|
replyToCommentId?: string
|
|
userId: string
|
|
|
|
/** @deprecated - content now stored as JSON in content*/
|
|
text?: string
|
|
content: JSONContent
|
|
createdTime: number
|
|
|
|
// Denormalized, for rendering comments
|
|
userName: string
|
|
userUsername: string
|
|
userAvatarUrl?: string
|
|
}
|