fix group invite index
This commit is contained in:
parent
eb2388a290
commit
841dfdd37d
1 changed files with 2 additions and 2 deletions
|
|
@ -256,7 +256,7 @@ public class Utils
|
||||||
string content = Encoding.UTF8.GetString(await Fs.ReadFile($"{path}/{invite}"));
|
string content = Encoding.UTF8.GetString(await Fs.ReadFile($"{path}/{invite}"));
|
||||||
if (!first) groupBuilder.Append(',');
|
if (!first) groupBuilder.Append(',');
|
||||||
first = false;
|
first = false;
|
||||||
groupBuilder.Append($"\"{groupId}\": {{ \"timestamp\": {content}, \"receiver\": \"{userId}\" }}");
|
groupBuilder.Append($"\"{groupId};{userId}\": {{ \"timestamp\": {content}, \"receiver\": \"{userId}\", \"groupId\": \"{groupId}\" }}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
groupBuilder.Append("}");
|
groupBuilder.Append("}");
|
||||||
|
|
@ -297,7 +297,7 @@ public class Utils
|
||||||
string content = Encoding.UTF8.GetString(await Fs.ReadFile($"{path}/{invite}"));
|
string content = Encoding.UTF8.GetString(await Fs.ReadFile($"{path}/{invite}"));
|
||||||
if (!first) groupBuilder.Append(',');
|
if (!first) groupBuilder.Append(',');
|
||||||
first = false;
|
first = false;
|
||||||
groupBuilder.Append($"\"{groupId}\": {{ \"timestamp\": {content}, \"sender\": \"{userId}\" }}");
|
groupBuilder.Append($"\"{groupId};{userId}\": {{ \"timestamp\": {content}, \"sender\": \"{userId}\", \"groupId\": \"{groupId}\" }}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
groupBuilder.Append("}");
|
groupBuilder.Append("}");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue