Backwards compatibility updates for libsignal-client

This commit is contained in:
Scott Nonnenberg 2021-02-12 09:43:24 -08:00
parent 34285054f6
commit bc0f4387fe
4 changed files with 28 additions and 6 deletions

View file

@ -1470,11 +1470,11 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
// General
idForLogging(): string {
const source = this.getSource();
const account = this.getSourceUuid() || this.getSource();
const device = this.getSourceDevice();
const timestamp = this.get('sent_at');
return `${source}.${device} ${timestamp}`;
return `${account}.${device} ${timestamp}`;
}
// eslint-disable-next-line class-methods-use-this