mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 02:54:34 +00:00
core: channel messages (#6604)
* core: channel messages (WIP) * do not include member ID when quoting channel messages * query plans * reduce duplication * refactor * refactor plan * refactor 2 * all tests * remove plan * refactor 3 * refactor 4 * refactor 5 * refactor 6 * plans * plans to imrove test coverage and fix bugs * update plan * update plan * bug fixes (wip) * new plan * fixes wip * more tests * comment, fix lint * restore comment * restore comments * rename param * move type * simplify * comment * fix stale state * refactor * less diff * simplify * less diff * refactor --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com> Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
This commit is contained in:
co-authored by
Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
spaced4ndy
parent
e29712c2e8
commit
628b00eb08
@@ -554,11 +554,19 @@ export type CIDirection =
|
||||
| CIDirection.DirectRcv
|
||||
| CIDirection.GroupSnd
|
||||
| CIDirection.GroupRcv
|
||||
| CIDirection.ChannelRcv
|
||||
| CIDirection.LocalSnd
|
||||
| CIDirection.LocalRcv
|
||||
|
||||
export namespace CIDirection {
|
||||
export type Tag = "directSnd" | "directRcv" | "groupSnd" | "groupRcv" | "localSnd" | "localRcv"
|
||||
export type Tag =
|
||||
| "directSnd"
|
||||
| "directRcv"
|
||||
| "groupSnd"
|
||||
| "groupRcv"
|
||||
| "channelRcv"
|
||||
| "localSnd"
|
||||
| "localRcv"
|
||||
|
||||
interface Interface {
|
||||
type: Tag
|
||||
@@ -581,6 +589,10 @@ export namespace CIDirection {
|
||||
groupMember: GroupMember
|
||||
}
|
||||
|
||||
export interface ChannelRcv extends Interface {
|
||||
type: "channelRcv"
|
||||
}
|
||||
|
||||
export interface LocalSnd extends Interface {
|
||||
type: "localSnd"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user