mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Rename NewNotification proto message to AddNotification
This commit is contained in:
parent
33f06d3104
commit
851d7d0bc4
5 changed files with 8 additions and 5 deletions
|
@ -242,6 +242,9 @@ impl ChannelChat {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Load all of the chat messages since a certain message id.
|
||||||
|
///
|
||||||
|
/// For now, we always maintain a suffix of the channel's messages.
|
||||||
pub async fn load_history_since_message(
|
pub async fn load_history_since_message(
|
||||||
chat: ModelHandle<Self>,
|
chat: ModelHandle<Self>,
|
||||||
message_id: u64,
|
message_id: u64,
|
||||||
|
|
|
@ -2934,7 +2934,7 @@ fn send_notifications(
|
||||||
for connection_id in connection_pool.user_connection_ids(user_id) {
|
for connection_id in connection_pool.user_connection_ids(user_id) {
|
||||||
if let Err(error) = peer.send(
|
if let Err(error) = peer.send(
|
||||||
connection_id,
|
connection_id,
|
||||||
proto::NewNotification {
|
proto::AddNotification {
|
||||||
notification: Some(notification.clone()),
|
notification: Some(notification.clone()),
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -154,7 +154,7 @@ impl NotificationStore {
|
||||||
|
|
||||||
async fn handle_new_notification(
|
async fn handle_new_notification(
|
||||||
this: ModelHandle<Self>,
|
this: ModelHandle<Self>,
|
||||||
envelope: TypedEnvelope<proto::NewNotification>,
|
envelope: TypedEnvelope<proto::AddNotification>,
|
||||||
_: Arc<Client>,
|
_: Arc<Client>,
|
||||||
cx: AsyncAppContext,
|
cx: AsyncAppContext,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
|
|
|
@ -176,7 +176,7 @@ message Envelope {
|
||||||
MoveChannel move_channel = 147;
|
MoveChannel move_channel = 147;
|
||||||
SetChannelVisibility set_channel_visibility = 148;
|
SetChannelVisibility set_channel_visibility = 148;
|
||||||
|
|
||||||
NewNotification new_notification = 149;
|
AddNotification add_notification = 149;
|
||||||
GetNotifications get_notifications = 150;
|
GetNotifications get_notifications = 150;
|
||||||
GetNotificationsResponse get_notifications_response = 151;
|
GetNotificationsResponse get_notifications_response = 151;
|
||||||
DeleteNotification delete_notification = 152;
|
DeleteNotification delete_notification = 152;
|
||||||
|
@ -1610,7 +1610,7 @@ message GetNotifications {
|
||||||
optional uint64 before_id = 1;
|
optional uint64 before_id = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NewNotification {
|
message AddNotification {
|
||||||
Notification notification = 1;
|
Notification notification = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,6 +135,7 @@ messages!(
|
||||||
(Ack, Foreground),
|
(Ack, Foreground),
|
||||||
(AckBufferOperation, Background),
|
(AckBufferOperation, Background),
|
||||||
(AckChannelMessage, Background),
|
(AckChannelMessage, Background),
|
||||||
|
(AddNotification, Foreground),
|
||||||
(AddProjectCollaborator, Foreground),
|
(AddProjectCollaborator, Foreground),
|
||||||
(ApplyCodeAction, Background),
|
(ApplyCodeAction, Background),
|
||||||
(ApplyCodeActionResponse, Background),
|
(ApplyCodeActionResponse, Background),
|
||||||
|
@ -212,7 +213,6 @@ messages!(
|
||||||
(LinkChannel, Foreground),
|
(LinkChannel, Foreground),
|
||||||
(MarkNotificationsRead, Foreground),
|
(MarkNotificationsRead, Foreground),
|
||||||
(MoveChannel, Foreground),
|
(MoveChannel, Foreground),
|
||||||
(NewNotification, Foreground),
|
|
||||||
(OnTypeFormatting, Background),
|
(OnTypeFormatting, Background),
|
||||||
(OnTypeFormattingResponse, Background),
|
(OnTypeFormattingResponse, Background),
|
||||||
(OpenBufferById, Background),
|
(OpenBufferById, Background),
|
||||||
|
|
Loading…
Reference in a new issue