Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions deltachat/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ const (
ContactFlagVerifiedOnly ContactFlag = 0x01
ContactFlagAddSelf ContactFlag = 0x02

//Chat types
ChatUndefined ChatType = 0
ChatSingle ChatType = 100
ChatGroup ChatType = 120
ChatMailinglist ChatType = 140
ChatBroadcast ChatType = 160

// Chat visibility types
ChatVisibilityNormal ChatVisibility = "Normal"
ChatVisibilityArchived ChatVisibility = "Archived"
Expand Down Expand Up @@ -92,3 +85,14 @@ const (
SysmsgMultiDeviceSync SysmsgType = "MultiDeviceSync"
SysmsgWebxdcInfoMessage SysmsgType = "WebxdcInfoMessage"
)

const (
ChatSingle ChatType = "Single"
ChatGroup ChatType = "Group"
ChatMailinglist ChatType = "Mailinglist"
ChatOutBroadcast ChatType = "OutBroadcast"
ChatInBroadcast ChatType = "InBroadcast"

// Deprecated: use "ChatOutBroadcast" instead
ChatBroadcast ChatType = ChatOutBroadcast
)
2 changes: 1 addition & 1 deletion deltachat/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type MsgId uint64
type ChatId uint64

// Values in const.go
type ChatType uint
type ChatType string

type Account struct {
// Configured
Expand Down