Add a log indicating when a reaction was added to a story
This commit is contained in:
parent
7399086939
commit
385eb63fd5
1 changed files with 10 additions and 0 deletions
|
@ -14,6 +14,7 @@ import * as log from '../logging/log';
|
|||
import { getContactId, getContact } from '../messages/helpers';
|
||||
import { isDirectConversation, isMe } from '../util/whatTypeOfConversation';
|
||||
import { isOutgoing, isStory } from '../state/selectors/message';
|
||||
import { getMessageIdForLogging } from '../util/idForLogging';
|
||||
|
||||
export class ReactionModel extends Model<ReactionAttributesType> {}
|
||||
|
||||
|
@ -187,6 +188,15 @@ export class Reactions extends Collection<ReactionModel> {
|
|||
generatedMessage.hydrateStoryContext(message),
|
||||
]);
|
||||
|
||||
log.info('Reactions.onReaction adding reaction to story', {
|
||||
reactionMessageId: getMessageIdForLogging(
|
||||
generatedMessage.attributes
|
||||
),
|
||||
storyId: getMessageIdForLogging(targetMessage),
|
||||
targetTimestamp: reaction.get('targetTimestamp'),
|
||||
timestamp: reaction.get('timestamp'),
|
||||
});
|
||||
|
||||
generatedMessage.set({ id: generatedMessageId });
|
||||
|
||||
const messageToAdd = window.MessageController.register(
|
||||
|
|
Loading…
Add table
Reference in a new issue