Skip to content

Commit

Permalink
Merge pull request #372 from BlueBubblesApp/v1.1.3
Browse files Browse the repository at this point in the history
V1.1.3
  • Loading branch information
zlshames authored Jun 11, 2022
2 parents 1b32856 + d917d83 commit 1e610ed
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluebubbles-server",
"version": "1.1.2",
"version": "1.1.3",
"description": "BlueBubbles Server is the app that powers the BlueBubbles app ecosystem",
"private": true,
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bluebubbles/server",
"version": "1.1.2",
"version": "1.1.3",
"main": "./dist/main.js",
"license": "Apache-2.0",
"author": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ export class ChatInterface {
const tmpChats = await Server().iMessageRepo.getChats({
chatGuid: guid as string,
withParticipants: true,
withArchived,
offset,
limit
withArchived
});

for (const chat of tmpChats) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ export class ContactInterface {
}: {
extraProps?: string[]
} = {}): any {
return records.map((e: NodeJS.Dict<any>) => {
return records.map((contact: NodeJS.Dict<any>) => {
// We have to make a copy so that when we "delete", we aren't deleting from the master copy.
const e = { ...contact };

// Only include extra properties that are asked for.
for (const prop of ContactInterface.apiExtraProperties) {
if (!extraProps.includes(prop) && Object.keys(e).includes(prop)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/server/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,8 @@ class BlueBubblesServer extends EventEmitter {
// Disconnect & reconnect to the iMessage DB
if (this.iMessageRepo.db.isConnected) {
this.log("Reconnecting to iMessage database...");
await this.iMessageRepo.db.close();
await this.iMessageRepo.db.connect();
await this.iMessageRepo.db.destroy();
await this.iMessageRepo.db.initialize();
}

await this.stopServices();
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bluebubbles/ui",
"version": "1.1.2",
"version": "1.1.3",
"homepage": "./",
"license": "Apache-2.0",
"scripts": {
Expand Down

0 comments on commit 1e610ed

Please sign in to comment.