-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from ecency/feature/forward-message
Added message forwarding between contacts and channels
- Loading branch information
Showing
7 changed files
with
70 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
export type PublicMessage = { | ||
interface BaseMessage { | ||
id: string; | ||
root: string; | ||
content: string; | ||
creator: string; | ||
created: number; | ||
forwardedFrom?: string; | ||
} | ||
|
||
export interface PublicMessage extends BaseMessage { | ||
root: string; | ||
children?: PublicMessage[]; | ||
mentions: string[]; | ||
sent?: number; | ||
}; | ||
} | ||
|
||
export type DirectMessage = { | ||
id: string; | ||
export interface DirectMessage extends BaseMessage { | ||
root?: string; | ||
content: string; | ||
peer: string; | ||
creator: string; | ||
created: number; | ||
children?: DirectMessage[]; | ||
decrypted: boolean; | ||
sent?: number; | ||
}; | ||
} | ||
|
||
export type Message = PublicMessage | DirectMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters