diff --git a/deltachat/const.go b/deltachat/const.go index 7da9ab4..becf6f4 100644 --- a/deltachat/const.go +++ b/deltachat/const.go @@ -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" @@ -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 +) diff --git a/deltachat/types.go b/deltachat/types.go index 8f1e261..0247b25 100644 --- a/deltachat/types.go +++ b/deltachat/types.go @@ -13,7 +13,7 @@ type MsgId uint64 type ChatId uint64 // Values in const.go -type ChatType uint +type ChatType string type Account struct { // Configured