Timeline: Resize message if any attachment is no longer pending

This commit is contained in:
Scott Nonnenberg 2019-09-04 14:11:30 -07:00 committed by Ken Powers
parent 93ee9ae2b2
commit dbc312e189
2 changed files with 3 additions and 21 deletions

View file

@ -11,12 +11,3 @@ export function getBubbleProps(attributes: any) {
return model.getPropsForBubble();
}
export function isVoiceFlag(flags: any): boolean {
// @ts-ignore
const protoFlags = window.textsecure.protobuf.AttachmentPointer.Flags;
const VOICE_MESSAGE_FLAG = protoFlags.VOICE_MESSAGE;
// tslint:disable-next-line no-bitwise
return Boolean(flags && flags & VOICE_MESSAGE_FLAG);
}