mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-05 14:51:45 +00:00
1 parent
c3c91e9d80
commit
eae41fc411
18 files changed
+47
-48
No files matched your search
@@ -259,19 +259,19 @@ impl Destination {
|
||||
#[tracing::instrument(skip(self))]
|
||||
pub fn get_prefix(&self) -> Vec<u8> {
|
||||
let mut prefix = match self {
|
||||
Destination::Appservice(server) => {
|
||||
Self::Appservice(server) => {
|
||||
let mut p = b"+".to_vec();
|
||||
p.extend_from_slice(server.as_bytes());
|
||||
p
|
||||
},
|
||||
Destination::Push(user, pushkey) => {
|
||||
Self::Push(user, pushkey) => {
|
||||
let mut p = b"$".to_vec();
|
||||
p.extend_from_slice(user.as_bytes());
|
||||
p.push(0xFF);
|
||||
p.extend_from_slice(pushkey.as_bytes());
|
||||
p
|
||||
},
|
||||
Destination::Normal(server) => {
|
||||
Self::Normal(server) => {
|
||||
let mut p = Vec::new();
|
||||
p.extend_from_slice(server.as_bytes());
|
||||
p
|
||||
|
||||
Reference in new issue
Block a user