rename connection elevation data
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
minio:
|
minio:
|
||||||
image: minio/minio:latest
|
image: minio/minio:latest
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ func HandleUserElevateConnection(response http.ResponseWriter, request *http.Req
|
|||||||
|
|
||||||
wsServer.WsSendMessageCloseIfTimeout(user2, types.WsEventMessage{
|
wsServer.WsSendMessageCloseIfTimeout(user2, types.WsEventMessage{
|
||||||
Type: WsEventType.ConnectionElevated,
|
Type: WsEventType.ConnectionElevated,
|
||||||
Event: types.ConnectionElevationData{
|
Event: types.ConnectionStatusChangeData{
|
||||||
Id: conn.Id,
|
Id: conn.Id,
|
||||||
NewState: conn.State,
|
NewState: conn.State,
|
||||||
},
|
},
|
||||||
@@ -363,7 +363,7 @@ func HandleUserDeElevateConnection(response http.ResponseWriter, request *http.R
|
|||||||
|
|
||||||
wsServer.WsSendMessageCloseIfTimeout(user2, types.WsEventMessage{
|
wsServer.WsSendMessageCloseIfTimeout(user2, types.WsEventMessage{
|
||||||
Type: WsEventType.ConnectionElevated,
|
Type: WsEventType.ConnectionElevated,
|
||||||
Event: types.ConnectionElevationData{
|
Event: types.ConnectionStatusChangeData{
|
||||||
Id: conn.Id,
|
Id: conn.Id,
|
||||||
NewState: conn.State,
|
NewState: conn.State,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ func (conn *Connection) GetSortedMessagesBuff() (*[globals.MaxDirectMsgCache]*Me
|
|||||||
return sorted, globals.MaxDirectMsgCache
|
return sorted, globals.MaxDirectMsgCache
|
||||||
}
|
}
|
||||||
|
|
||||||
type ConnectionElevationData struct {
|
type ConnectionStatusChangeData struct {
|
||||||
Id uuid.UUID `json:"id"`
|
Id uuid.UUID `json:"id"`
|
||||||
NewState ConnectionState.ConnectionState `json:"newState"`
|
NewState ConnectionState.ConnectionState `json:"newState"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user