We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125d986 commit 4b751b4Copy full SHA for 4b751b4
common/constant/constant.go
@@ -7,6 +7,7 @@ const (
7
MESSAGE_TYPE_USER = 1
8
MESSAGE_TYPE_GROUP = 2
9
10
+ TEXT = 1
11
FILE = 2
12
IMAGE = 3
13
AUDIO = 4
server/server.go
@@ -63,7 +63,7 @@ func (s *Server) Start() {
63
64
if msg.To != "" {
65
// 一般消息,比如文本消息,视频文件消息等
66
- if msg.ContentType >= constant.FILE && msg.ContentType <= constant.VIDEO {
+ if msg.ContentType >= constant.TEXT && msg.ContentType <= constant.VIDEO {
67
saveMessage(msg)
68
if msg.MessageType == constant.MESSAGE_TYPE_USER {
69
client, ok := s.Clients[msg.To]
0 commit comments