Skip to content

Commit a6eda8b

Browse files
authored
SubteamRename protocol changes (keybase#13346)
1 parent c204b82 commit a6eda8b

5 files changed

Lines changed: 66 additions & 18 deletions

File tree

‎go/chat/types/types.go‎

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,27 @@ import (
1111
context "golang.org/x/net/context"
1212
)
1313

14-
var ActionNewConversation = "newConversation"
15-
var ActionNewMessage = "newMessage"
16-
var ActionReadMessage = "readMessage"
17-
var ActionSetStatus = "setStatus"
18-
var ActionSetAppNotificationSettings = "setAppNotificationSettings"
19-
var ActionTeamType = "teamType"
20-
var ActionExpunge = "expunge"
21-
22-
var PushActivity = "chat.activity"
23-
var PushTyping = "chat.typing"
24-
var PushMembershipUpdate = "chat.membershipUpdate"
25-
var PushTLFFinalize = "chat.tlffinalize"
26-
var PushTLFResolve = "chat.tlfresolve"
27-
var PushTeamChannels = "chat.teamchannels"
28-
var PushKBFSUpgrade = "chat.kbfsupgrade"
29-
var PushConvRetention = "chat.convretention"
30-
var PushTeamRetention = "chat.teamretention"
31-
var PushConvSettings = "chat.convsettings"
14+
const (
15+
ActionNewConversation = "newConversation"
16+
ActionNewMessage = "newMessage"
17+
ActionReadMessage = "readMessage"
18+
ActionSetStatus = "setStatus"
19+
ActionSetAppNotificationSettings = "setAppNotificationSettings"
20+
ActionTeamType = "teamType"
21+
ActionExpunge = "expunge"
22+
23+
PushActivity = "chat.activity"
24+
PushTyping = "chat.typing"
25+
PushMembershipUpdate = "chat.membershipUpdate"
26+
PushTLFFinalize = "chat.tlffinalize"
27+
PushTLFResolve = "chat.tlfresolve"
28+
PushTeamChannels = "chat.teamchannels"
29+
PushKBFSUpgrade = "chat.kbfsupgrade"
30+
PushConvRetention = "chat.convretention"
31+
PushTeamRetention = "chat.teamretention"
32+
PushConvSettings = "chat.convsettings"
33+
PushSubteamRename = "chat.subteamrename"
34+
)
3235

3336
func NewAllCryptKeys() AllCryptKeys {
3437
return make(AllCryptKeys)

‎go/protocol/chat1/gregor.go‎

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎protocol/avdl/chat1/gregor.avdl‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,9 @@ protocol gregor {
155155
TopicType topicType;
156156
}
157157

158+
record SubteamRenameUpdate {
159+
array<ConversationID> convIDs;
160+
InboxVers inboxVers;
161+
}
162+
158163
}

‎protocol/json/chat1/gregor.json‎

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎shared/constants/types/rpc-chat-gen.js.flow‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ export type StaleUpdateType =
730730
| 1 // NEWACTIVITY_1
731731

732732
export type StaticConfig = $ReadOnly<{deletableByDeleteHistory?: ?Array<MessageType>}>
733+
export type SubteamRenameUpdate = $ReadOnly<{convIDs?: ?Array<ConversationID>, inboxVers: InboxVers}>
733734
export type SweepRes = $ReadOnly<{foundTask: Boolean, deletedMessages: Boolean, expunge: Expunge}>
734735
export type SyncAllNotificationRes = {typ: 0, state: ?Gregor1.State} | {typ: 1, incremental: ?Gregor1.SyncResult}
735736
export type SyncAllNotificationType =

0 commit comments

Comments
 (0)